PatrickJS / angular-hmr

:fire: Angular Hot Module Replacement for Hot Module Reloading
https://patrickjs.com
Apache License 2.0
505 stars 46 forks source link

HMR switches to default environment randomly #73

Open dolanmiu opened 6 years ago

dolanmiu commented 6 years ago

Whenever I make a change to the project with hmr enabled, the environment sometimes switches back to the default environment.ts

For example, I will be on environment.prod.ts, then after a few changes, I will be on environment.ts for some reason.

Anyone have an answer or fix to this?

herkulano commented 6 years ago

Have a look at this issue and comment: https://github.com/angular/angular-cli/issues/10268#issuecomment-390297861