F
F
fantazerno2017-05-15 12:49:21
gulp.js
fantazerno, 2017-05-15 12:49:21

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

1 answer(s)
V
Vladimir Lukashev, 2017-05-29
@Lukavis

https://github.com/mrmlnc/emitty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question