respond icon indicating copy to clipboard operation
respond copied to clipboard

Angular is running in the development mode?

Open patrikhuber opened this issue 7 years ago • 3 comments

I've got the following text in the browser developer console:

Angular is running in the development mode. Call enableProdMode() to enable the production mode.

In my .env, I've set APP_ENV=production and APP_DEBUG=false. Is Angular to be supposed to run in development mode and not in production mode, and if yes, for what reason(s)?

patrikhuber avatar Jan 01 '18 20:01 patrikhuber

I am hoping this is one of those Angular oddities that is fixed as the Angular CLI matures. Right now, you have to enable prod mode in code. By enabling it, you potentially suppress some binding errors. So, it would have to be done before release. It would be nice if "ng build --prod" would just take care of this, but it doesn't right now. So, for the short term I have opted to not enable prod mode in the app.

madoublet avatar Jan 01 '18 20:01 madoublet

Okay, cool! Thank you very much for the explanation :-) (feel free to close or keep it open if you want to track it.)

patrikhuber avatar Jan 01 '18 21:01 patrikhuber

I will keep it open for now. I am going to do some more research around this.

madoublet avatar Jan 01 '18 21:01 madoublet