floatdrop / gulp-plumber

Fixing Node pipes
MIT License
806 stars 32 forks source link

Plumber show error only 1 file - gulp-sass #59

Open markode opened 6 years ago

markode commented 6 years ago

Hi, I need a little help, when we change something especially in the main.scss file there will be an error, when we change something in another file there is no error at all, where can the error be?

 gulp.task( "css", function() {
    gulp.src( "assets/scss/main.scss" )
    .pipe( plumber() )
    .pipe( sass.sync({
        outputStyle: 'compressed'
    })
    )
    .pipe( autoprefixer({
        browsers: ["last 8 version", "IE 9"]
    }))
    .pipe(concat('main.min.css'))
    .pipe( gulp.dest( "dist/css/" ))
    .pipe( browserSync.stream() );
});
gulp.task( "watch", function() {
    gulp.watch( "assets/scss/**/*.scss", ["css"] );
});

main.scss

// Global
@import "global";
//Header
@import "header/header";
@import "header/mobile-menu";
//Front-page
@import "front-page/front";
// Footer
@import "footer";
mrassili commented 6 years ago

I have this problem too, I'm using @import and gulp-plumber doesn't handle errors in partials (_) but only in the main.scss file