Z
Z
Zlatoslav Desyatnikov2015-02-14 19:06:22
JavaScript
Zlatoslav Desyatnikov, 2015-02-14 19:06:22

gulp. How to implement error skipping in js?

Hello!
There is such a Gulpfile.
Watch watches for changes to files and rebuilds everything.
When I save a file in the editor and there is an error in it, gulp catches the error and cuts it off. How to make it so that it does not get cut down, but just writes an error and continues to work, waiting for a file without an error?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
copal, 2015-02-14
@pxz

This is what you need gulp-plumber .
It prevents gulp from crashing and instead prints an error message.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question