一、在执行gulp rename任务时报错
二、添加allowEmpty参数即可
gulp.task("rename",function (){
var stream = gulp.src('./js/hello.txt',{allowEmpty: true})
.pipe(rename('./js/goodbye.md'))
.pipe(gulp.dest('./dist'))
return stream
})
一、在执行gulp rename任务时报错
二、添加allowEmpty参数即可
gulp.task("rename",function (){
var stream = gulp.src('./js/hello.txt',{allowEmpty: true})
.pipe(rename('./js/goodbye.md'))
.pipe(gulp.dest('./dist'))
return stream
})