gulp使用问题汇总

来源:互联网 发布:cad网络培训 编辑:程序博客网 时间:2024/06/11 03:27

1. 怎么避免gulp watch 中断?

使用gulp-blumber插件:

npm install gulp-plumber --save

在配置文件中类似这样使用:

gulp.task('coffee', function() {  return gulp.src(path.scripts)    .pipe(plumber()) //plumber给pipe打补丁    .pipe(coffee())    .pipe(gulp.dest('js'));});

。。。。。未完待续

原创粉丝点击