I can't get gulp-less to not process everything, everytime. I've tried:
- updating my version of gulp
- using gulp-changed
- using gulp-newer
It works with gulp-ngmin, but not with gulp-less
So this processes test.js only if I change test.js:
var SRC = 'test.js';
var DEST = 'dist';
gulp.task('test', function () {
return gulp.src(SRC)
.pipe(changed(DEST))
// ngmin will only get the files that
// changed since the last time it was run
.pipe(ngmin())
.pipe(gulp.dest(DEST));
});
But everytime I run this task, it computes the less
What is wrong here?
var SRC = 'test.less';
var DEST = 'dist';
gulp.task('test', function () {
return gulp.src(SRC)
.pipe(changed(DEST))
.pipe(less({
paths: [path.join(__dirname, 'less', 'includes')]
}))
.pipe(gulp.dest(DEST));
});