I have lines in my js files like this
console.log('FunctionName()');
The default Ajax Minifier settings do not remove these lines from the .min.js output.
I noticed in this discussion a conversation about Kill switches.
Looking at the Kill Switch page here. I noticed there is this switch:
/// <summary>
/// remove "debug" statements
/// </summary>
StripDebugStatements = 0x0000000000800000,
I am not using the command line, I am referencing the DLL. This is how I have implemented it.
CodeSettings jsSettings = new CodeSettings()
{
KillSwitch = 800000,
};
and then later the actual minifier method.
string fileMinified = minifier.MinifyJavaScript(fileSource, jsSettings);
How can i remove console.log()?