强制nodemon监视来自node_modules的文件

时间:2018-09-15 18:36:10

标签: nodemon

您好,nodemon可以监视node_modules中特定模块的更改

我已经像这样启动了nodemon

nodemon index.js --watch 'node_modules/specific_module/**

我也尝试过使用nodemon.json文件

"watch": [
  "node_modules/specific_module/**"
]

但无济于事。有没有办法实现这种行为,或者无论我做什么,node_modules中的任何内容都会被永远忽略?

1 个答案:

答案 0 :(得分:0)

Nodemon:查看模块文件夹

正如@variable 在评论中提到的,这里是一个包含 print(tabulate(dframe, headers='keys', tablefmt='github', showindex=False)) nodemon.json(显然排除 node_modules

.git

来自docs

<块引用>

假设您确实想查看 node_modules 目录。您必须覆盖 ignoreRoot。如果您希望在每个项目的基础上进行此操作,请将配置添加到您的本地 nodemon.json。如果您希望所有项目都使用它,请将其添加到 $HOME/nodemon.json:

相关问题