1、NodeJS6.6 install https://nodejs.org/en/
c:\nodejs>npm install -g grunt-cli
C:\Users\police\AppData\Roaming\npm\grunt -> C:\Users\police\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt
C:\Users\police\AppData\Roaming\npm
`-- [email protected]
+-- [email protected]
| `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]
2、WebStorm-2016.2.3 https://download.jetbrains.8686c.com/webstorm/WebStorm-2016.2.3.exe
注册的时候,选择License server http://idea.imsxm.com/
3、npm install grunt-contrib-sass grunt-contrib-uglify grunt-contrib-watch --save-dev
npm install grunt-contrib-clean grunt-contrib-concat grunt-contrib-copy grunt-contrib-jshint grunt-contrib-requirejs grunt-ftp-deploy grunt-jsduck grunt-rename grunt-string-replace grunt-strip js-obfuscator --save-dev
http://www.cnblogs.com/unofficial/p/3895215.html
http://lawrencenaman.com/blog/sass-compass-windows/
grunt build
done!