staticmicrobuild 是一个基于node和ajaxmin的window批处理工具,用于合并压缩js和css
- 从http://ajaxmin.codeplex.com/下载安装
- 配置ajaxmin环境变量 C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\AjaxMin.exe
- 新建txt重命名为cmd
- js build node buildcmd.js config.json js call staticbuild.cmd del staticbuild.cmd
- css build node buildcmd.js config.json css call staticbuild.cmd del staticbuild.cmd
- 新建txt重命名为config.json {"jsinputlist" : [ "D:/wamp/www/static/release/common/js/base.js", "D:/wamp/www/static/release/common/jquery.js" ], "cssinputlist": [ "D:/wamp/www/static/release/common/css/base.css" ] } 建议用物理盘路径