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

watch.scripts.files won't work with `**/*.js`

Open paolodm opened this issue 7 years ago • 0 comments

grunt-contrib-watch would not work with the following configuration

            grunt.config.set('watch', {
                scripts: {
                    files: '**/*.js',
                    options: {
                        spawn: true
                    }
                }
            });

but it did with this:

            grunt.config.set('watch', {
                scripts: {
                    // notice I specified the directory here
                    files: 'directory/**/*.js',
                    options: {
                        spawn: true
                    }
                }
            });

paolodm avatar Sep 29 '16 14:09 paolodm