哪个Javascript minifier(cruncher)的功能与Google用于其JS API的功能相同? [英] Which Javascript minifier (cruncher) does the same things that the one Google uses for its JS APIs?

查看:156
本文介绍了哪个Javascript minifier(cruncher)的功能与Google用于其JS API的功能相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Google Maps API(javascript)开发人员。我注意到Google使用了具有以下功能的Javascript minifier:

I am a Google Maps API (javascript) developer. I have noticed that Google uses a Javascript minifier that has the following features:


  1. 缩短变量,属性,参数,类,函数和方法名称,混淆代码。 (例如,function1 - > a,function2 - > b,function3 - > c)

  2. 某些变量,类,属性和方法可以标记为不被压缩,因此其名称仍为与API手册中记录的内容相同。

  3. 它在API的每次颠覆中重新运行,就像构建任务一样,我注意到,因为从一个版本到另一个版本的名称发生了变化。 / li>
  1. Shortens variables, properties, arguments, classes, function and method names, obfuscating the code. (eg. function1 -> a, function2 -> b, function3 -> c)
  2. Some variables, classes, properties and methods can be marked to not be crunched, so its name remains the same as documented in the API manual.
  3. It is rerun in each subversion of the API, like a build task, I noticed that because of the crunched names changes from one version to another.

我没有在整个互联网上找到具有这些功能的Javascript minifier。有谁知道吗?

I have not found in the whole internet a Javascript minifier with those features. Anyone knows one?

推荐答案

Google现在已经打开了 minifier 他们与其他一些内部javascript好东西一起使用。

Google has now opened up the minifier they use along with some other internal javascript goodies.

全部名称关闭工具并且宣布了

这篇关于哪个Javascript minifier(cruncher)的功能与Google用于其JS API的功能相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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