grunt-nodemon参数配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了grunt-nodemon参数配置相关的知识,希望对你有一定的参考价值。
grunt-nodemon参数配置
nodemon0.2.0版本后参数名称做了较大改动,调整了下nodemon的参数配置,有需要的同学可以参考下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
nodemon: { dev: { script: ‘app.js‘ , options: { args: [], nodeArgs: [ ‘--debug‘ ], ignore: [ ‘README.md‘ , ‘node_modules/**‘ , ‘.DS_Store‘ ], ext: ‘js‘ , watch: [ ‘./‘ ], delay: 1000, env: { PORT: ‘3000‘ }, cwd: __dirname } } } |
特别是要加上script:‘app.js‘,不然会遇到启动grunt报错
以上是关于grunt-nodemon参数配置的主要内容,如果未能解决你的问题,请参考以下文章
grunt-nodemon 没有使用 nodemon 来启动服务器