Search code examples
node.jsnpmstylusnodemon

nodemon filters styl file changes


I had nodemon wathcing .styl files using the following settings in nodemon.json without any ignore rules:

"watch": [
  "src/css/*.styl",
  "src/css/includes/*.styl"
]

Any changes were supposed to trigger my build scripts defined in package.json.

However after editing a .styl file, nodemon seemed to have filtered the changes:

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

Any ideas about what went wrong?


Solution

  • add watching extensions in nodemon.json:

    "ext": "js json css styl jade"