Build for production


I want to publish an IONIC, REACT and CAPACITOR application. Just do the build with the parameter --prod? What exactly does this parameter do in the build?

Is there any way to optimize the generated build for a production environment (remove logs, minify, obfuscate, etc…)


Pretty much all the stuff you’re asking for.

Okay, but in this case I’m working with REACT, and doing the build with this parameter I don’t see any major difference, all the console logs keep appearing.