如何用nodemon监视子文件夹?

时间:2018-11-02 17:06:59

标签: macos npm nodemon

我有一个安装了nodemon的npm项目。当我修改server.js文件中的内容时,它可以正常工作。

我也有一个public / index.html文件。在package.json中,我添加了以下内容:

  "watch": {
    "build": "public/*.html"
  }

当我更改index.html中的任何内容并保存时,nodemon不会刷新。有什么想法我做错了吗?

0 个答案:

没有答案