Multiple environment config in angular 6+ with Angular-CLI

Saleem Malik
1 min readJul 30, 2018

--

angular configuration update

ng serve –-env= dev

would probably get error by now and hence you are at this point to rectify it out

Below table(Image 1.0) shows the difference in config to resolve the above issue

Image 1.0 : config updates

Eg: Below is the new config added for new dev environment inside angular.json

Image 1.1 : New dev environment config added

Other properties like ‘aot’ , ‘serviceWorker’ etc can be set when really needed

--

--