I\'m looking into different ways to minify my JavaScript code including the regular JSMin, Packer, and YUI solutions. I\'m really interested in the new Google Closure Compil
I use this in my React apps:
if (process.env.REACT_APP_STAGE === 'PROD') console.log = function no_console() {};
In other words, console.log will return nothing on prod enviroment.
console.log