开发者

Can you combine Javascript into single file without minifying it with yui-compressor?

开发者 https://www.devze.com 2023-03-13 03:23 出处:网络
Is there a way to compress input javascript in a sinlge file but not minify it using Yui-Compressor? string compressedJavascript = JavaScriptCompressor.Compress(uncompressedJavasc开发者_StackOverflow

Is there a way to compress input javascript in a sinlge file but not minify it using Yui-Compressor?

  string compressedJavascript = JavaScriptCompressor.Compress(uncompressedJavasc开发者_StackOverflow社区ript)

This what I have now. I see the Compress() is overloaded to allow code to be left obfuscated, etc. But I would like the code to be left unminified for debugging.


It seems YUI's command line documentation says to use the -nomunge option which means:

Minify only. Do not obfuscate local symbols.

Look for that in the documentation for the C# port you are using.

0

精彩评论

暂无评论...
验证码 换一张
取 消