shakyShane / jekyll-gulp-sass-browser-sync

A starter project including full setup for Jekyll, GulpJS, SASS & BrowserSync
728 stars 169 forks source link

Prevent stopping server when sass has error. #32

Closed azemoh closed 8 years ago

azemoh commented 8 years ago

This prevents browser-sync from stopping when sass has errors. It just prints the error and server keeps running.

Sandstedt commented 8 years ago

Works great! You could also keep the browserSync notification, like this:

.pipe(sass({
    includePaths: ['scss'],
    onError: browserSync.notify('Error in sass')
}))
.on('error', sass.logError)
azemoh commented 8 years ago

That's right, I see why it stops the server. Made changes in PR #51