javascript 一次缩小和混淆多个javascript文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7822433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Minify and obfuscate multiple javascript files at once
提问by Yukulelix
I want to minify and obfuscate multiple javascript files at once but keeping the way they are linked (name of variables and functions)
我想一次缩小和混淆多个 javascript 文件,但保持它们的链接方式(变量和函数的名称)
Do you know any software that could help ?
你知道有什么软件可以帮助吗?
采纳答案by Sahil Muthoo
Pick whatever suits you best.
选择最适合你的。
回答by Adil Malik
You can also convert multiple js files into multiple obfuscated files instead of having one single obfuscated files. I've created a solution and explained it on my blog. Please take a look: http://adilsblogs.blogspot.com/2012/07/obfuscating-multiple-js-files-using-yui.html
您还可以将多个 js 文件转换为多个混淆文件,而不是一个单独的混淆文件。我已经创建了一个解决方案并在我的博客上进行了解释。请看一看:http: //adilsblogs.blogspot.com/2012/07/obfuscating-multiple-js-files-using-yui.html
回答by Ira Baxter
Our ECMAScript Obfuscatordoes this. It builds a map remember how it obfuscated names, and you can reobfuscate individual files, or new files, and extend the map, without breaking what has already been obfuscated.
我们的ECMAScript Obfuscator 就是这样做的。它构建了一个映射,记住它是如何混淆名称的,您可以重新混淆单个文件或新文件,并扩展映射,而不会破坏已经混淆的内容。