Answer the question
In order to leave comments, you need to log in
How to cache Stylus in GULP?
Good afternoon, tell me how to implement Stylus caching in Gulp
Tried through gulp-cache, but it does not help
//Stylus
gulp.task('stylus', function () {
return gulp.src(['app/css/**/*.styl','app/module/**/*.styl'])
.pipe(cache('stylus'))
.pipe(progeny({
regexp: /^\s*@import\s*(?:\(\w+\)\s*)?['"]([^'"]+)['"]/
}))
.pipe(filter(['**/*.styl', '!**/_*.styl']))
.pipe(stylus({
use:[rupture()],
'include css': true,
})).on('error', errorhandler)
.pipe(gulp.dest('app/css/'))
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question