Hello Everyone,
We are using angular js 2 in one of our projects, and using angular-cli for building the projects.
Right now, we have extracted the properties into environment.ts files, which include api endpoints and other things. and we have one file for each environment as per the documentation. we have multiple environmentss like, DEV, QA, STAGE and PROD.
Right now we build for specific environment and move the dist folder to ngnix server for deployment.
The problem over here is, we have to build it separately for every environment. Is there a way where we build it once and same build works for all environments.
eg.
ng build --env=dev
Regards,
Jagadesh