I want build to fail when gulp compile fails

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?

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.

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

1 Like