Nodemon 不使用 --ignore 选项
Nodemon not using the --ignore option
我在 Expressjs 项目上使用 Nodemon。我的 package.json 中有以下内容:
"start": "nodemon server.js --ignore 'src/**'"
我已经尝试了 ignore glob 的几种变体,但每次 'src/' 中的文件更改时它仍然会重新启动。
我需要做什么才能让 Nodemon 忽略 src 目录?
谢谢。
您可以尝试添加配置 nodemon.json,内容如下:
{
"verbose": true,
"ignore": ["src/*"]
}
"start": "nodemon server.js --config nodemon.json"
我的朋友也许....只是不使用''....示例:
nodemon index.js --ignore src/*
对我有用
重复,不要使用 '' 或 ""
我在 Expressjs 项目上使用 Nodemon。我的 package.json 中有以下内容:
"start": "nodemon server.js --ignore 'src/**'"
我已经尝试了 ignore glob 的几种变体,但每次 'src/' 中的文件更改时它仍然会重新启动。
我需要做什么才能让 Nodemon 忽略 src 目录?
谢谢。
您可以尝试添加配置 nodemon.json,内容如下:
{
"verbose": true,
"ignore": ["src/*"]
}
"start": "nodemon server.js --config nodemon.json"
我的朋友也许....只是不使用''....示例:
nodemon index.js --ignore src/*
对我有用
重复,不要使用 '' 或 ""