Yep, sass in my gulpfile (gulp@3.9.1) reports many errors (and keeps continuing the watch, just as it should...), but not errors like these:
=clearfix()
&:after
content: ""
display: table
clear both
content
and display
make it correctly into the actual class (where the mixin is referenced), but clear
doesn't (because I missed the colon). This is a syntax error (so it's not like rareproperty: 42px;
handled gracefully). → still: No errors seen, no interruption.
My gulp task:
gulp.task('sass', function() {
return gulp.src(src.scssMaster)
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe( sass({
debugInfo : true,
lineNumbers : true,
outputStyle: 'expanded'
})
.on('error', function(err){
gutil.log(err); // stackoverflow.com/a/30742014/444255
this.emit('end');
})
)
.pipe(autoprefixer({
browsers: ['iOS >= 5', 'ie 8', 'Firefox > 2'],
cascade: true,
remove: true
}))
.pipe(rename('lznet.css'))
.pipe(sourcemaps.write('../maps'))
.pipe(gulp.dest(src.cssDir))
.pipe(reload({stream: true}))
.on('end', () => gutil.log('sass thing done'));
});
Mille grazie ❤