nodemon过滤样式文件更改
我使用了.styl
中的下列设置, nodemon.json
没有任何ignore
规则,使nodemon wathcing .styl
文件:
"watch": [ "src/css/*.styl", "src/css/includes/*.styl" ]
任何更改都会触发我在package.json
定义的构build脚本。
但是在编辑.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"