Sunday 18 June 2017

Different npm start depending on environment?

I'm trying to deploy to a web app in Azure and I have it working fine. However, in my package.json, I have a "start" script which Azure needs to determine how to start my app. Currently, that's node ./bin/www. I'd like that to be something like ng build && node ./bin/www or ng build --prod && node ./bin/www depending on if my environment variable is Production or not. Is that possible?

Submitted June 19, 2017 at 04:35AM by jackmusick

No comments:

Post a Comment