Environment.Dev.ts files needs to be copied to environment.ts during dev build. Environment.qa.ts to environment. Ts on qa build. But when final wars are created both dev.war and qa.war has environment. Dev.ts despite of mentioning which ts file needs to be copied in POM.xml