Iam using Visual studio
Iam having javascript codes scattered in different files.
Currently iam using below link's compressor
http://yuicompressor.codeplex.com/
this generates output as combined+minified files on project build.
i am looking for some way to remove all console.log statements from my codes in minified files. Please suggest me how to do this.
Why not just do this:
window['console'] = { log: function() {} };
when you don't want the "console.log" statements to do anything?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With