首页 > 解决方案 > 在运行 gulp watch 时,我的 vs 代码终端在启动“watch”时停止

问题描述

var gulp = require("gulp");

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

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

    return gulp.src("./style.css").pipe(autoprefixer()).pipe(gulp.dest("build"));
});

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

    gulp.watch("./style.css", gulp.series("style"));
});

标签: csssaas

解决方案


推荐阅读