gruntjs / grunt-contrib-watch

Run tasks whenever watched files change.
http://gruntjs.com/
MIT License
1.98k stars 356 forks source link

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

Open paolodm opened 7 years ago

paolodm commented 7 years ago

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
                    }
                }
            });