0
stealthdev created
I am setting up a deployment pipeline in Azure Devops (VSTS). To build the angular app using appconfig.production.json, I simply need to run the following command. "ng build --prod --build-optimize"
How do I configure the project and what command do I run in order to have it use my appconfig.staging.json file?
3 Answer(s)
-
0
Here are the introduction documents you can refer to: How to manage different environments with Angular CLI? [Updated for v6+]
-
0
try
ng build --prod --build-optimize --environment=staging
https://stackoverflow.com/a/48154480/1767482 -
0
if your issue is still active, reopen please. currently closing due to inactivity.