M
M
Mr Hobot2016-10-22 12:09:26
gulp.js
Mr Hobot, 2016-10-22 12:09:26

Gulp crashes on error, what should I do?

Hello. I discovered such a wonderful thing as assemblers, namely gulp. My joy knew no bounds, though while I was sitting on sublime text. Delivered WebStorm and problems began. With any addition of the code, the storm immediately saves, watch gallp monitors everything and throws an error because I do not have time to add the code. As a result, the gulp falls. What to do with it? You can somehow configure it so that in case of an error, it would, of course, issue it in the console, but it did not fall and did not pull the local server along with it. I understand that you can just turn off autosave, but maybe there is another solution to the problem? Thanks for answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Edward, 2016-10-22
@vashaaa

Gulp Plumber

.pipe(plumber({
    errorHandler: notify.onError(err => ({
        title: 'ERROR SASS Сompilation',
        message: err.message
    }))
}))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question