grunt使用笔记
来源:互联网 发布:淘宝人像摄影教程 编辑:程序博客网 时间:2024/04/30 02:29
1、安装grunt:
在项目目录下 npm intall grunt -g
2、安装grunt-cli
npm install grunt-cli -g
3、安装插件
npm install grunt-contrib-watch --save-dev
......
4、配置grunt
建立grunt.js文件
module.exports = function(grunt){
grunt.initConfig({
//定义任务
})
//配置参数
grunt.option(‘force’,true);
//加载插件
grunt.loadNpmTasks(‘grunt-contrib-watch’)
grunt.loadNpmTasks(‘grunt-nodemon’)//用来实时监听
grunt.loadNpmTasks(‘grunt-concurrent’)
//注册默认任务
grunt.registerTask(‘default’,[‘concurrent’])
}
5、运行grunt
直接输入grunt即可
0 0
- grunt使用笔记
- Grunt-Grunt使用
- grunt笔记
- Grunt 笔记
- grunt使用
- grunt使用
- grunt使用
- grunt 使用
- grunt学习笔记一:grunt安装
- grunt学习笔记四:grunt实例demo
- grunt学习笔记五:grunt模板
- Grunt 配置livereload笔记
- grunt 入门笔记
- grunt 笔记一
- grunt学习笔记
- Grunt、webpack个人笔记
- grunt学习笔记
- grunt+seajs构建笔记
- http协议的工作原理?
- C++数据结构之List--线性实现
- Unity Web Player修改加载页面的LOGO
- 通过继承封装导航栏,使导航栏上面出现的按钮和图标均相同
- 数据仓库之ETL应用
- grunt使用笔记
- hdu5433 Xiao Ming climbing(BestCoder Round #55 ($) )
- iOS正则表达式使用
- 签证之家
- php向数据库中插入中文乱码问题
- HDU 5439 Aggregated Counting
- 利用Aspose.Words打印word文档
- Opencv+Kinect2.0获取景深图
- POJ 1401&&NYOJ 954 N!