gulp执行命令就打开js文件怎么办

2025-03-12 17:16:47
推荐回答(1个)
回答1:

gulp-cheerio差=插件可以gulp.task('indexHtml',function(){returngulp.src('index.html').pipe(cheerio(function($){$('script').remove();$('link').remove();$('body').append('');$('head').append('');})).pipe(gulp.dest('dist/'));});