floatdrop / gulp-plumber

Fixing Node pipes
MIT License
806 stars 32 forks source link

Compatibility with gulp-if? #23

Closed mgcrea closed 9 years ago

mgcrea commented 9 years ago

It looks like using gulp-if is breaking gulp-plumber error catching:

  function lessChannel() {
    return require('stream-combiner')(
      gulpif('**/*.less', less()),
      // less(), // is properly handled by upstream plumber
      autoprefixer('last 1 version'),
      gulp.dest(src.tmp)
    );
  };
  gulp.task('src/styles', function() {
    gulp.src(src.styles, {cwd: src.cwd, base: src.cwd})
      .pipe(plumber())
      .pipe(lessChannel());
  });

Related gulp-if issue: https://github.com/robrich/gulp-if/issues/40

revolunet commented 9 years ago

+1

conmute commented 9 years ago

+1

floatdrop commented 9 years ago

gulp-if got fixed.