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

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

问题描述

我知道这个问题已经被问了很多次,但这里是我的特殊需求。混淆器需要进来一个Java库的形式,这样我就可以以自动生成过程中做出的Ant任务。 IE7,8,Firefox和Chrome必须能够跨preT所产生的JS非常快(原来的js文件是pretty大 - 18K线code的)。如果不存在满足这些要求,我愿意考虑商业解决方案。

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或道场,所以不能上这是最好的注释。)

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

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

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