Tianhe Gao

使用 JSMin 压缩 JavaScript

从 GitHub 仓库:douglascrockford/JSMin 得到源代码 jsmin.c ,然后执行以下命令:

1gcc -Wall jsmin.c -o jsmin # 编译源文件,生成可执行文件,附带警告
2./jsmin <source.js >source.min.js # > 左侧的空格,如果省去,则无法将所有代码压缩成一行

No notes link to this note

Welcome to tell me your thoughts via "email"
UP