Since 2014, I simply use GULP (and recommend everyone to, it's an amazing tool), and I have a package installed which is called stripDebug which does that for you.
(I also use uglify
and closureCompiler
in production)
Update (June 20, 2019)
There's a Babel Macro that automatically removes all console
statements:
https://www.npmjs.com/package/dev-console.macro