Questions tagged [gulp-cached]

in memory file cache

Sample of usage for caching of sass compilation results:

gulp.src("./src/css/site.scss")
    .pipe(sass())
    .pipe(cached("sass_compiled")) 
    .pipe(gulp.dest("./dist/css"));

https://github.com/gulp-community/gulp-cached

4 questions
3
votes
2 answers

Only compile sass if a file has changed using gulp

I'm trying to rebuild my gulp file to be a bit more efficient, and I'm having some trouble getting my styles task to only compile if a file has changed. I found this question, but the answer doesn't seem to be working for me. Let's say I have my…
JacobTheDev
  • 17,318
  • 25
  • 95
  • 158
1
vote
0 answers

gulp-cache AssertionError: missing path

this is my gulpfile.js var $ = require('gulp-load-plugins')(); // Optimize images gulp.task('images', function () { return gulp.src('app/images/**/*') .pipe($.cache($.imagemin({ progressive:…
LI YI
  • 11
  • 1
0
votes
1 answer

gulp: pass only files changed in pipe

I try to sort through files, substitute text in some and save only changed. In my current code gulp-changed does nothing. const gulp = require('gulp'); const changed = require('gulp-changed'); const replace =…
Mikhail Vasin
  • 2,421
  • 1
  • 24
  • 31
0
votes
1 answer

gulp-remember seems to output wrong path

[Using gulp 3.9.0, gulp-cached 1.1.0, gulp-remember 0.3.0, gulp-rename 1.2.2] We're using gulp as a build tool and gulp-cached together with gulp-remember to allow fast incremental rebuilds. Part of the files under build have to be moved to a…
Heinzi
  • 5,793
  • 4
  • 40
  • 69