ehynds / grunt-remove-logging

Grunt.js task for removing console logging statements
MIT License
192 stars 33 forks source link

if(...) console.log(...); becomes if(...) and breaks code of missing semicolon #34

Open muluc opened 9 years ago

muluc commented 9 years ago

Hello,

we also encounter issues with non conform code in 3rd party libraries.. in our case Chart.js....

if (window.console && typeof window.console.warn == "function") console.warn(str);

becomes

if (window.console && typeof window.console.warn == "function")

and breaks the code... I know it's not an issue with your library, but it would be really nice if you code somehow build an exception for that.

Cheers

Florian