gulp-changed

Gulp Changed doesn't work

非 Y 不嫁゛ 提交于 2019-12-18 09:04:17
问题 I have previously used gulp changed with my JS without a problem. However now I am trying to use gulp-changed and gulp-newer on my scss files without it detecting which file has changed. var changed = require('gulp-changed'); var newer = require('gulp-newer'); var SRC = './stylesheets/**/*.scss'; var DEST = './stylesheets'; gulp.task('sass', function () { return gulp.src(SRC) .pipe(changed(DEST)) //tried newer here as well .pipe(sass()) .pipe(gulp.dest(DEST)) }); When changing a scss file it

gulp-changed with gulp-concat not working

不打扰是莪最后的温柔 提交于 2019-12-12 05:38:04
问题 I want to compile only the .less files that have changed in order to speed up my debug/coding workflow. Here is my gulp task: gulp.src('core/**/*.less') .pipe(changed('core')) .pipe(less().on('error', handleError)) .pipe(autoprefixer('last 2 version')) .pipe(remember()) .pipe(concat('main.min.css')) .pipe(gulp.dest('core')) .on('end', resolve) .on('error', reject); I used gulp-changed and because it didn't work at first, I tried to use gulp-remember as well, but with no effect. The watch

javascript, gulp, watch, changed

强颜欢笑 提交于 2019-12-06 06:06:00
问题 I cannot get my head around this. This is supposed to be a gulp task that is executed every time a watched file is modified. Can anyone explain why it is required to pipe the watched files through the changed plugin? gulp.task('build-css', function () { return gulp.src(paths.css) .pipe(changed(paths.output, {extension: '.css'})) .pipe(gulp.dest(paths.output)); }); gulp.task('watch', ['serve'], function() { gulp.watch(paths.css, ['build-css']); }); Disclaimer: this is not my code. Just trying

javascript, gulp, watch, changed

点点圈 提交于 2019-12-04 09:03:34
I cannot get my head around this. This is supposed to be a gulp task that is executed every time a watched file is modified. Can anyone explain why it is required to pipe the watched files through the changed plugin? gulp.task('build-css', function () { return gulp.src(paths.css) .pipe(changed(paths.output, {extension: '.css'})) .pipe(gulp.dest(paths.output)); }); gulp.task('watch', ['serve'], function() { gulp.watch(paths.css, ['build-css']); }); Disclaimer: this is not my code. Just trying to understand what is going on, in order to create my own custom watch task. The difference between

Gulp Changed doesn't work

怎甘沉沦 提交于 2019-11-29 15:00:42
I have previously used gulp changed with my JS without a problem. However now I am trying to use gulp-changed and gulp-newer on my scss files without it detecting which file has changed. var changed = require('gulp-changed'); var newer = require('gulp-newer'); var SRC = './stylesheets/**/*.scss'; var DEST = './stylesheets'; gulp.task('sass', function () { return gulp.src(SRC) .pipe(changed(DEST)) //tried newer here as well .pipe(sass()) .pipe(gulp.dest(DEST)) }); When changing a scss file it will output there has been a change but not change any scss [BS] Watching files... [09:26:13] Starting