I want build to fail when gulp compile fails

gulp

#1

I have a question. I want build to fail when gulp compile fails, but build would success even if gulp compile fails.

Could you tell me how to make build fail when gulp compile fails?


#2

Failure is determined by exit code. In order for this to happen you need whatever command is running gulp to return a non zero exit code if it fails.


#3

Thank you for your replying. We have to return a non zero code.


#4