Closed
Description
- gulp: 4.00
- node: 8.9.4
- npm: 5.8.0
- OS: macOS 10.12.6
gulpfile.json
const gulp = require('gulp');
const watchGlob = 'folder/**/*';
gulp.task('test', () => {
gulp.watch(watchGlob, (done) => { done() })
.on('change', (path) => {
console.log(`File ${path} changed.`);
});
});
run test task and change folder/foo
file
result output is:
Starting 'test'...
File folder/foo changed.
Starting ''...
Finished '' after 1.45 ms
change watchGlob
const watchGlob = 'フォルダ/**/*';
run test task and change フォルダ/foo
file.
result output is:
Starting 'test'...