mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
⚡ Add cache to gulp compilation
This commit is contained in:
@@ -20,6 +20,7 @@ const {rimraf} = require("rimraf");
|
||||
const sass = require("sass");
|
||||
const gettext = require("gettext-parser");
|
||||
const marked = require("marked");
|
||||
const cache = require("gulp-cached");
|
||||
|
||||
const mapStream = require("map-stream");
|
||||
const paths = {};
|
||||
@@ -187,8 +188,9 @@ gulpSass.compiler = sass;
|
||||
|
||||
gulp.task("scss:modules", function() {
|
||||
return gulp.src(["src/**/**.scss"])
|
||||
.pipe(gulpSass.sync({includePaths: ["./resources/styles/common/",
|
||||
"./resources/styles/"]}).on('error', gulpSass.logError))
|
||||
.pipe(cache("sass"))
|
||||
.pipe(gulpSass.sync({includePaths: ["./resources/styles/common/", "./resources/styles/"]}).on('error', gulpSass.logError))
|
||||
.pipe(cache("modules"))
|
||||
.pipe(gulpPostcss([
|
||||
modules({
|
||||
generateScopedName: "[folder]_[name]_[local]_[hash:base64:5]",
|
||||
|
||||
Reference in New Issue
Block a user