Gulp stops working on every error

I use gulp watch to watch and compile my SASS files.
Every time if there is an error (file not found or syntax error) the task quits with something like:

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: source string:23: error: file to import not found or unreadable: "general" //here the _general.scss file could not be found

Can I change the settings somewhere that the error get catched/dispayed but the task keeps running?
The problem is that I sometimes don’t see that there was an error and then I wonder why my CSS changes don’t work…

You need to add the plumber task to the start of your pipe
https://www.npmjs.com/package/gulp-plumber

2 Likes

@campers nice, thanks for sharing this.
This may be something we should add to gulp tools