Skip to content

Instantly share code, notes, and snippets.

@michalbcz
Created October 1, 2016 10:20
Show Gist options
  • Select an option

  • Save michalbcz/8b0bafbfe17c03d30ebd8cec09acecb4 to your computer and use it in GitHub Desktop.

Select an option

Save michalbcz/8b0bafbfe17c03d30ebd8cec09acecb4 to your computer and use it in GitHub Desktop.
gulp auto restart on syntax error
while [ 1 ]; do gulp watch; sleep 3; done
@michalbcz

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment