Angular 4 environment-specific info loaded using a json file so rebuilds in each environment are unnecessary.
This source code is referenced in the Intertech blog post located here:
https://www.intertech.com/Blog/deploying-angular-4-apps-with-environment-specific-info