Ionic enable production mode

Hi,

I’m trying to enable production mode in ionic 3.x. However I can’t find any reference to that flag in the documentation. How can I do this?

Just build with --prod and you are done. This takes care of it.

I forgot to describe that app is deployed as a webapp and not a mobile app. I want to enable production mode for web version.

Same then. Run npm run ionic:build --prod to create a production build.
(Next version of CLI will have a ionic build command that makes this a bit nicer)