How to remove JS logging calls in our prod build of our mvc3 web app?
问题 We've got a lot of calls to our logging methods (that just wrap console.log) all throughout our JS in our MVC3 web app and I'd like to remove them from the JavaScript when we build our test and production builds. Currently we're using the bundling and minification nuget package to bundle and minify our JS into one big minified file but I'd like to have it rip out the calls to the logging methods as well. We do have a mechanism in place that replaces the logging methods with empty functions so