grunt-contrib-watch
grunt-contrib-watch copied to clipboard
Not watching for addition of new files by default
When adding or removing a file in a folder that is being watched the tasks are not run.
The default options I've found specify that the 'all' event types is the default option
Type: String|Array Default: 'all'
Specify the type watch event that trigger the specified task. This option can be one or many of: 'all', 'changed', 'added' and 'deleted'.
It seems as though this is not the case as I needed to add the following code for the 'added' & 'deleted' events to work as expected.
options: {
event: ['changed', 'added', 'deleted']
}
Same as you @jjmu15 but I'm not lucky, even I have added events explicitly, it still not run.