Run on new file created
Dynalon opened this issue · 2 comments
Dynalon commented
[Feature request] It would be nice if the watcher would also trigger when new files are created, that would match a specific pattern.
For example:
package.json
"watch": {
"copy-assets": "assets/**/*"
},
"scripts": {
"copy-assets": "cp -R assets/ dist/"
}
That way, if new images are dropped into the assets folder, the would match the pattern and the task would re-run top copy the assets into the dist folder. The current behaviour is, that the newly created file is not picket up by the watcher.
lakb248 commented
+1
dobesv commented
I imagine this would have to be fixed in nodemon
, since this tool doesn't do the file watching itself.