摘要:
1.安装nodejshttp://nodejs.org/2.安装各自的node packagejs我用的是UglifyJS github地址:https://github.com/mishoo/UglifyJScss我用的是clean-cssgithub地址:https://github.com/GoalSmashers/clean-css图片用的是node-smushit github地址:https://github.com/colorhook/node-smushit3.编写代码//jsvar fs = require('fs');var jsp = require(&q 阅读全文