In Angular-CLI they have a very straightforward way: https://github.com/angular/angular-cli/wiki/stories-application-environments
Before implementing my own solution I would like to be sure there isn't already a way that most people are using and agreeing upon.