1、grunt-contrib-jshint javascript代码检查(并会给出建议) https://github.com/gruntjs/grunt-contrib-jshint
2、grunt-contrib-concat 合并JS文件 https://github.com/gruntjs/grunt-contrib-concat
3、grunt-contrib-uglify 压缩js https://github.com/gruntjs/grunt-contrib-uglify
4、grunt-contrib-less 将less编译为CSS https://github.com/gruntjs/grunt-contrib-less
5、grunt-contrib-qunit 单元测试 https://github.com/gruntjs/grunt-contrib-qunit
6、grunt-contrib-watch 文件监控 https://github.com/gruntjs/grunt-contrib-watch
7、grunt-contrib-connect 在本地模拟一个web server https://github.com/gruntjs/grunt-contrib-connect
8、grunt-contrib-copy 自动复制粘贴文件的 https://github.com/gruntjs/grunt-contrib-copy
9、grunt-contrib-clean 做清洁工作,不然会残留很多没有用的文件 https://github.com/gruntjs/grunt-contrib-clean
10、grunt-contrib-compress 用于压缩文件和目录成为zip包 https://github.com/gruntjs/grunt-contrib-compress
转载于:https://www.cnblogs.com/dubaokun/p/3433847.html
本文介绍了Grunt这一前端自动化构建工具的多个插件,包括代码检查、合并及压缩JS文件、LESS编译、单元测试等功能,帮助开发者提高工作效率。
359

被折叠的 条评论
为什么被折叠?



