美文网首页
gulp 4 编译 less

gulp 4 编译 less

作者: Shudamu | 来源:发表于2022-03-26 23:48 被阅读0次

    var { series, src, dest, watch } = require("gulp");

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

    function lessTask() {

      return src("less/*.less").pipe(less()).pipe(dest("public/css"));

    }

    function watchTask() {

      return watch("less/*.less", lessTask);

    }

    exports.watch = series(lessTask, watchTask);

    exports.default = async () => {

      lessTask();

    };

    相关文章

      网友评论

          本文标题:gulp 4 编译 less

          本文链接:https://www.haomeiwen.com/subject/vsesjrtx.html