Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
markode opened this issue Jan 14, 2018 · 1 comment
Open

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

markode opened this issue Jan 14, 2018 · 1 comment

Comments

@markode
Copy link

markode commented Jan 14, 2018

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants