Closed siamkreative closed 8 years ago
Actually, I think it should work that way:
console.log()
statementsconsole.log()
statements programmatically.https://github.com/ehynds/grunt-remove-logging https://www.npmjs.com/package/grunt-contrib-uglify#conditional-compilation
We're already using gulp-strip-debug
here https://github.com/ThemeAvenue/BetterOptin/blob/master/gulpfile.js#L81
8c268ea35be4ba291edbdab8d7083834428e6e89
In public/assets/js/betterOptin-config.js, I should be using a variable called
wpDebug
instead, that istrue
when WP_DEBUG is enabled. Therefore, theconsole.log()
would automatically trigger.