DEV Community

Discussion on: Using shared settings between multiple environments in Angular 🚀

Collapse
 
rmcsharry profile image
Richard McSharry • Edited

Yes you can do this. Just don't use the --prod flag.

"ng build --configuration my_special_config"

in angular.json add "my_special_config"

If you wanted to apply everything that you've configured already for the production build, but overwrite/add some settings then still create it in angular.json and then:

"ng build --configuration production, my_special_config"

See angular.io/guide/workspace-config#...