js 压缩工具 google closure compiler

 

代码须要压缩,就用google colsure compiler. java

在线使用:segmentfault

点开: http://closure-compiler.appspot.com/home  直接用app

或者直接下载:google

https://developers.google.com/closure/compiler/命令行

 怎么用看看这里 ip

https://developers.google.com/closure/compiler/docs/gettingstarted_appget

简单例子: file

在控制台,输入命令行:下载

java -jar compiler.jar --js hello.js --js_output_file hello-compiled.jsdeveloper

 

可参考 

使用Google Closure Compiler高级压缩Javascript代码

 

官网: https://developers.google.com/closure/compiler/

相关文章
相关标签/搜索