我正在运行以下监视任务:
gulp.task('watch', function() {
gulp.watch('./ui/scss/*.scss', ['styles']);
gulp.watch('./js/*.js', '!./js/vendor/*.js', ['scripts']);
gulp.watch('./**/*.html', ['html']);
});
但它似乎抛出以下错误?...
TypeError: Cannot assign to read only property 'mark' of !./js/vendor/*.js at new Gaze
答案 0 :(得分:1)
手表的第二个参数必须声明为数组
gulp.watch('src...', ['taskname', ......];