closure-compress
v1.0.1
Published
compress js by google interface
Downloads
7
Readme
js代码压缩插件
使用的是google的接口,地址:http://closure-compiler.appspot.com/home
安装
使用方式
参数说明
- codeString: 需要压缩的js代码,codeString和codePath至少填一个,默认使用codeString
- codePath: 需要压缩的js文件路径,codeString和codePath至少填一个,默认使用codeString
- charType: 需要压缩的js文件的格式,默认'utf-8'
- compressPath: 压缩文件存储地址,默认null
- getCompress: function (data) {console.log(data);} // 获取编码之后的字符串
- hostname: 代理配置,默认null
- port: 代理端口配置,默认null