开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜