我在 nodemon.json
中使用以下设置让 nodemon wathcing .styl
文件没有任何 ignore
规则:
"watch": [
"src/css/*.styl",
"src/css/includes/*.styl"
]
任何更改都应该触发我在 package.json
中定义的构建脚本。
但是在编辑了一个 .styl
文件之后,nodemon 似乎过滤了这些变化:
Express app running on 3001
[nodemon] files triggering change check: src/css/main.styl
[nodemon] matched rule: **/src/css/*.styl
[nodemon] changes after filters (before/after): 1/0
有什么地方出了问题吗?
最佳答案
在 nodemon.json
中添加监听扩展:
"ext": "js json css styl jade"
关于node.js - nodemon 过滤样式文件更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36252282/