Hi guys, I have one silly question. I’m wondering about ways to speed up my app. In most cases the popular one is to use --prod
flag during build. But also I found an advice to enable Angular production mode with
enableProdMode();
in main.ts. Are these actions the same and trigger the same mechanism?
No they are not the same, but you also do not need to manually call enableProdMode()
. The ionic build scripts deal with this for you.