Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在一个单一的文件中压缩输入的 javascript 但不使用 Yui-Compressor 压缩它?
string compressedJavascript = JavaScriptCompressor.Compress(uncompressedJavascript)
这就是我现在所拥有的。我看到 Compress() 被重载以允许代码被混淆等。但我希望代码保持不变以进行调试。
似乎 YUI 的命令行文档说要使用该-nomunge选项,这意味着:
-nomunge
仅缩小。不要混淆本地符号。
在您正在使用的 C# 端口的文档中查找它。