Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
This repository was archived by the owner on Aug 14, 2026. It is now read-only.

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

Open

Description

@markode

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";

Activity

  1. mrassili commented on Jan 22, 2018

    @mrassili

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions