1、安装nodejs,如已安装请忽略 2、安装grunt,npm install grunt 3、配置package.json和gruntfile.js文件,详解请见 想合并整个文件夹的文件请安装grunt-contrib-concat, 想压缩某个文件请安装grunt-contrib-cs...