How to easily add environment variables to an Angular application
This guide assumes that you already have an angular application set up by
ng create and are using Angular CLI for
Other guides that I've read rely upon re-writing your
with each compilation. I find this to be completely unnecessary when angular's internal use of
webpack can just
be extended to include environment variables.