Shazwazza / ClientDependency

DEPRECATED. A library for managing CSS & JavaScript dependencies and optimization in ASP.Net
139 stars 65 forks source link

Is it possibel to remove console-log and debuger from JS files #139

Closed pedroadaodev closed 6 years ago

pedroadaodev commented 6 years ago

Hi,

My question. Is there some configuration on XML to remove all console.log and debugger commands from JS files after or before minification?

Thanks, Pedro

Shazwazza commented 6 years ago

nope sorry, the minification isn't smart, it's just fast. It doesn't produce any AST or anything like that, there's no filter, etc...

Shazwazza commented 6 years ago

You could probably roll your own provider by overriding some methods to achieve this but not something I've looked at.

pedroadaodev commented 6 years ago

Thank you for the reply.

Best regards, Pedro