混淆:制作 file-min.js?
例如,当我下载 Jquery 时,我看到总是有 2 个文件:jquery.js 和 jquery-min.js。
他们如何创建 jQuery-min.js ->在这个文件中,它不仅被压缩,而且被混淆。哪种工具最适合执行此操作?
我正在使用 Visual Studio 2010 Ultimate,这也可以吗?
提前致谢!
For example, when I download Jquery, I see there is always 2 file: jquery.js and jquery-min.js.
How could they create jQuery-min.js -> in this file, it is not only compressed but also obfuscated. Which tool is best to do this?
I am working with Visual Studio 2010 Ultimate, would it be also possible as well?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以使用这个: http://dean.edwards.name/packer/ 非常酷.. . 我相信 jQuery 是用它来压缩的。有 .NET、PHP 和其他版本此处。
对于 Visual Studio,我使用:http://yuicustomtool.codeplex.com/。
也检查一下 CSS: https://csscompressor.net/
更新: 最近我遇到了这个。它是一个在线 YUI 压缩器。如果您无法运行 YUI Compressor EXE,或者您尚未将 JS 编写为压缩友好型(例如,它会将
;
本身添加到对象定义的末尾),那么它很有用。You can use this: http://dean.edwards.name/packer/ pretty cool... and I believe jQuery is compressed using that. There are .NET, PHP and other versions HERE.
For Visual Studio I use this: http://yuicustomtool.codeplex.com/.
Checkout this too for CSS: https://csscompressor.net/
UPDATE: Recently I came across THIS. Its an Online YUI Compressor. Its useful if you are not able to run YUI Compressor EXE, or you haven't wrote your JS to be minification friendly (it adds
;
by itself to the end of the object's definition for example).