Created
October 1, 2016 10:20
-
-
Save michalbcz/8b0bafbfe17c03d30ebd8cec09acecb4 to your computer and use it in GitHub Desktop.
gulp auto restart on syntax error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while [ 1 ]; do gulp watch; sleep 3; done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If for example babel fail to transpil because of compile error, whole gulp watch process die. With this solution process is immediately restarted so you don't need to run "gulp watch" by hand again.