How to reuse the build for an Angular project

Viewed 852

How can I reuse my Angular builds so I do not have to build for every specific environment?

we need to find a way to manipulate the environments in runtime in Angular!

We have settings for each environment and we use NG build --env=dev and build for the dev environment. How can I change the configuration in QA, UAT and production environments?

Toolset: .Net Visual Studio Team Services, Angular 2

Is there no way to do this at runtime? Are we stuck with the build time/design time?

Also can we consider selecting environments based on our urls which has a postfix ? https://company-fancyspawebsite-qa.azurewebsites.net

PS:We are using the Angular 2 environments folder and app settings files for each environment.

enter image description here

enter image description here

enter image description here

1 Answers
Related