【发布时间】:2021-07-05 06:25:42
【问题描述】:
有没有办法使用配置文件而不是命令行来指定监视列表?
nodemon 文档中的命令行方法:
我尝试使用带有以下内容的nodemon.json 配置文件:
{
"ext": ["js", "json", "hbs", "html"]
}
返回一个“extension.match”错误。
然后我尝试使用以下内容将配置添加到package.json:
{...
"nodemonConfig": {
"ext": ["js", "json", "hbs", "html"]
}
...}
同样的错误。
我感觉这两种方法都在正确的轨道上,但我错过了一些东西。
【问题讨论】:
标签: javascript node.js nodemon