You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
I still get the same error message, when I deliberately make errors in my CSS. Plumber doesn't seem to be working.
Error in plugin 'gulp-sass'
Message:
src/scss/components/_cover.scss
30:3 property "background-i" must be followed by a ':'
Details:
column: 3
line: 30
file: /Volumes/Boba/Work/Sites/realph/src/scss/components/_cover.scss
status: 1
messageFormatted: src/scss/components/_cover.scss
30:3 property "background-i" must be followed by a ':'
Hm, it's best to use sync when not returning the stream then, I guess? Otherwise I sometimes get some weird errors because my styles task didn't finish yet.
@sandhilt, @realph : Just be aware that removing return before gulp.src will cause task dependencies to not work as they should. While a dependent task will wait for its dependencies, those dependencies will seem to end before they're actually done. If you have the return dependent task will actually wait for all the streams to end before running.
gulp.task('sass',function(){returngulp.src('scss/style.scss').pipe(plumber()).pipe(sass.sync({// Have to use sass.sync - See Issue (https://github.com/dlmanning/gulp-sass/issues/90)outputStyle: 'compressed',errLogToConsole: true})).pipe(autoprefixer({browsers: ['last 2 versions','ie >= 9']})).pipe(gulp.dest('./'));});
would that do the trick?
Reacted by ziv, Garrett Sanderson, Alex Ford, Pantelis Petmezas, Clay Dunston, Hristo Ivanov and Tomoyo Yamaguchi
var$=require('gulp-load-plugins')({lazy: true});// John Papa tip for shortening the require listgulp.task('sass',['clean-sass'],function(){log('SASS Compilation ==> CSS3');returngulp.src(conf.sass).pipe($.plumber()).pipe($.sass()).on('error',$.sass.logError).pipe($.autoprefixer({browsers: ['last 2 version','> 5%']})).pipe(gulp.dest(conf.tempDir));});
Activity
JoshLipps commentedon May 22, 2015
+1
floatdrop commentedon May 27, 2015
Good news - there is nothing wrong in
gulp-sasscode, bad news - I have no idea, why error is not watched by plumber.@realph could you remove all plugins below
sass, run and post output?[-]Gulp Plumber Returning Errors in Sass[/-][+]Not working with gulp-sass[/+]realph commentedon May 27, 2015
So when I remove all the plugins below
gulp-sass, like so:I still get the same error message, when I deliberately make errors in my CSS. Plumber doesn't seem to be working.
frolic commentedon May 28, 2015
@realph Try calling gulp-sass with
sass.syncinstead ofsass.See https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes#gulp-watch-stops-working-on-an-error for an explanation.
sandhilt commentedon May 28, 2015
@holic You're right! @realph keep code but remove return.
gulp.task('sass', function() {
gulp.src(...)
.pipe(plumber())
.pipe(sass({...}));
});
realph commentedon Jun 6, 2015
@sandhilt That seems to have fixed it. Thanks!
silvenon commentedon Jun 12, 2015
Hm, it's best to use
syncwhen not returning the stream then, I guess? Otherwise I sometimes get some weird errors because my styles task didn't finish yet.joshwiens commentedon Sep 22, 2015
@holic - GG worked like a charm after your suggestion to "rtfm" :)
gligoran commentedon Sep 23, 2015
@sandhilt, @realph : Just be aware that removing
returnbeforegulp.srcwill cause task dependencies to not work as they should. While a dependent task will wait for its dependencies, those dependencies will seem to end before they're actually done. If you have thereturndependent task will actually wait for all the streams to end before running.joshwiens commentedon Sep 23, 2015
@gligoran - Yeah and that ended up not being an option for me. I managed to get it working with the
returnstatement after a bit of dinking around.TheAggressive commentedon Oct 2, 2015
@joshtoo how did you get it to work?
joshwiens commentedon Oct 3, 2015
@TheAggressive - If you can point me to a repo i'll take a look at your gulp build.
TheAggressive commentedon Oct 3, 2015
@joshtoo I got it to work this way:
would that do the trick?
joshwiens commentedon Oct 3, 2015
@TheAggressive
TheAggressive commentedon Oct 3, 2015
@joshtoo Thanks!!
joshwiens commentedon Oct 3, 2015
@TheAggressive No problem :)
Prevent break of gulp task on SASS errors
alextrastero commentedon Nov 12, 2017
Removing return worked for me