Search code examples
javascriptyui-compressor

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(uncompressedJavascript)

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.


Solution

  • 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.