We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
YUI Compressor 是一个 Java 应用程序,可以压缩和混淆您的 Javascript 代码。 它是一个从命令行运行的 Java 应用程序(并且可能是构建过程的一部分)。
另一个是 PHP Minify,它执行类似的操作。
YUI Compressor is a Java app that will compact and obfuscate your Javascript code. It is a Java app that you run from the command line (and would probably be part of a build process).
Another one is PHP Minify, which does a similar thing.
另一个是 ShrinkSafe,它是 Dojo 的一部分,但可以独立使用(在构建脚本、命令行或网站中):
http://shrinksafe.dojotoolkit.org/
Another one is ShrinkSafe that is part of Dojo but may be used stand-alone (either in a build script, command line or at the website):
http://shrinksafe.dojotoolkit.org/
您可能正在寻找GWT - 它是Java-to-JavaScript比 JavaScript 到 JavaScript 更好,但您可能仍然发现它很有用。
我无法评论我们使用什么内部工具(如果有的话)进行 JavaScript 到 JavaScript。 (说实话,我什至不知道...在明确不告诉任何人之前我必须查一下:)
You may be looking for GWT - it's Java-to-JavaScript rather than JavaScript-to-JavaScript, but you may still find it useful.
I can't comment on what internal tool, if any, we use for JavaScript-to-JavaScript. (To be honest, I don't even know offhand... I'd have to look it up before explicitly not telling anyone :)
实际上不太可能是 JS->JS,更不可能是 Java->JS。 这些天我相信推荐的 JS 压缩器(因为这就是他们的名字)是 YUI 压缩器< /a>,但也存在其他类似 /packer/ 的内容
It's actually pretty unlikely to be JS->JS, much more so to be Java->JS. These days I believe the recommended JS compressor (for this is what they're called) is the YUI compressor, but others like /packer/ exist
Crockford.com 的 JSMin 是朝着这个方向迈出的一步,假设您只是寻求最小化而不是混淆。
Crockford.com's JSMin is one step in that direction, assuming you're only looking for minimization and not obfuscation.