4 ms·
I've switched most of my projects to Gulp from Grunt as I prefer code over config. One thing that I wish Gulp did out of the box though would be not to termina
by dugmartin 12y ago
I've switched most of my projects to Gulp from Grunt as I prefer code over config. One thing that I wish Gulp did out of the box though would be not to terminate on errors but rather beep without having to write .on('error', ...) handlers.
- pmx 12y agoYou can add this to your gulpfile.js and it will just spew errors to the console, and then keep going as if nothing happened. //Don't let node crash process.on('uncaughtException', function (err) { console.error(err); });
- grumblestumble 12y agoThis is easily handled with gulp-plumber: http://cameronspear.com/blog/how-to-handle-gulp-watch-errors-with-plumber/ http://cameronspear.com/blog/how-to-handle-gulp-watch-errors...
- deleted 12y ago[deleted]
- Recoil42 12y agoAdding gulp-plumber will fix this, but I agree, it should be available out of the box. https://www.npmjs.org/package/gulp-plumber https://www.npmjs.org/package/gulp-plumber
- contrahax 12y agoThis is being fixed in gulp 4 - check github issues for more info