Prevent pipe breaking caused by errors from gulp plugins
Briefly it replaces
pipe method and removes standard
onerror handler on
error event, which unpipes streams on error by default.
gulp-plumber as a development dependency:
npm install --save-dev gulp-plumber
Then, add it to your
var plumber = ;var coffee = ;gulp;
Returns Stream, that fixes
pipe methods on Streams that are next in pipeline.
Sets options described below from its properties. If type is
Function it will be set as
pipe functions in underlying streams in pipeline.
Handle errors in underlying streams and output them to console.
functionpassed - it will be attached to stream
falsepassed - error handler will not be attached.
undefined- default error handler will be attached.
This method will return default behaviour for pipeline after it was piped.
var plumber = ;gulp;