下面是我的代码:
gulp.watch([config.src + '/**/**'], function(event) {
console.log('File ' + event.path + ' was ' + event.type);
});
下面是我的代码:
gulp.watch([config.src + '/**/**'], function(event) {
console.log('File ' + event.path + ' was ' + event.type);
});
已解决,因为config.src = './app'; 去掉 './'就可以监控到了