Grunt 常用插件

本文介绍了Grunt这一前端自动化构建工具的多个插件,包括代码检查、合并及压缩JS文件、LESS编译、单元测试等功能,帮助开发者提高工作效率。


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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值