作为 Java 库提供的最好的免费 JavaScript 混淆器是什么? [英] What is the best free JavaScript obfuscator that is available as a Java library?

查看:24
本文介绍了作为 Java 库提供的最好的免费 JavaScript 混淆器是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被问过很多次了,但这里是我的具体需求.混淆器需要以 Java 库的形式出现,因此我可以执行 Ant 任务以自动化构建过程.IE7、8、Firefox 和 Chrome 必须能够非常快速地解释生成的 js(原始 js 文件非常大 - 18k 行代码).如果没有满足这些要求的存在,我愿意考虑商业解决方案.

I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty big - 18k lines of code). If none exist which satisfy these requirements I'm willing to consider a commercial solution.

推荐答案

一些选项:

  • YUI compressor. See Julien Lecomte's blog for example use from Ant.
  • LCA Soft provide a free Ant task interface to the Dojo Toolkit compressor.
  • Jawr - Ant task.

(我没有用过 Jawr 或 Dojo,所以无法评论哪个最好.)

(I've not used Jawr or Dojo, so can't comment on which is best.)

这篇关于作为 Java 库提供的最好的免费 JavaScript 混淆器是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆