Skip to content
压缩指定目录下的js或将压缩后的输入到某目录下,非触发式,需要主动调用
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
README.md
package.json

README.md

compress

压缩指定目录下的js或将压缩后的输入到某目录下,非触发式,需要主动调用

usage

npm install compressjs2 -g
compress //压缩当前目录下所有js并替换
compress -d /home/js //压缩目标目录下js并替换
compress -d /home/js -o /home/build //压缩目标目录下js并输出到/home/build目录下
compress -c //美化压缩后的js文件
compress -l //递归循环调用所有目录,否则只有当前级别

License

The MIT License

You can’t perform that action at this time.