Mac 执行 gulp 报错:File not found
- 问题描述:使用gulp的时候gulp.src传递的目录不存在而导致进程终止报错 Error: File not found with singular glob: d:/wamp/www/qc_h5/build (if this was purposeful, use
allowEmpty
option)
其实上面也已经说得很清除了哈,只需要添加 {allowEmpty: true}
就可以了
gulp.task('dev-clean', function() {
return gulp
.src(devPath.buildPath, { allowEmpty: true})
.pipe(clean());
});
还没有评论,来说两句吧...