Can now pass list of paths to ignore separated by : using NODE_DEV_IGNORE env variable.
You can now set `NODE_DEV_IGNORE` environment variable to a list of p…
…aths separated by `:`. All files inside these paths will be ignored.
I'm curious, what's your use-case for this setting?
From looking at other similar tools it seems that most of them have this feature and so I thought it would be nice to implement this in my favorite one :)
Good point! I'm not sure if an environment var is the best solution in this case though. I chose that approach for the screen blanking thing because it's a global setting. An exclude pattern looks more like a per-project configuration to me. On the other hand the whole idea of node-dev was to be a zero-config solution ... Hm, I think I have to meditate about this some more ...
ENV variables could be used per project using command line, and that's what I do for my projects.
$> NODE_DEV_IGNORE=./tmp node-dev app/index.js
Closing this as VM-hooks can now be switched off. If this particular feature is still needed, the way to go would be to add an option to the config file and pass it to chokidar here.