grunt-contrib-watch icon indicating copy to clipboard operation
grunt-contrib-watch copied to clipboard

Not watching for addition of new files by default

Open jjmu15 opened this issue 9 years ago • 1 comments

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']
}

jjmu15 avatar Mar 19 '15 13:03 jjmu15

Same as you @jjmu15 but I'm not lucky, even I have added events explicitly, it still not run.

leedorian avatar Nov 11 '15 04:11 leedorian