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

Prevent stopping server when sass has error. #32

Closed
wants to merge 1 commit into from
Closed

Prevent stopping server when sass has error. #32

wants to merge 1 commit into from

Conversation

azemoh
Copy link

@azemoh azemoh commented Dec 25, 2015

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

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

Sandstedt commented Jun 28, 2016

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

azemoh commented Sep 19, 2016

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

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

Successfully merging this pull request may close these issues.

2 participants