猿问

gulp watch 执行出错(watchtaskisnot啊fucntion)

var gulp=require("gulp");

var uglify=require("gulp-uglify");


gulp.task("uglify",function(){

gulp.src("js/*.js").pipe(uglify()).pipe(gulp.dest("js-uglify"));

})

gulp.task('auto1',function(){

    gulp.watch("js/*.js",['uglify']);

})

运行结果

kixv
浏览 1457回答 1
1回答
随时随地看视频慕课网APP
我要回答