Telling YUI compressor to remove specific non-commented code

Posted by wheresrhys on Stack Overflow See other posts from Stack Overflow or by wheresrhys
Published on 2010-05-13T10:30:32Z Indexed on 2010/05/13 10:44 UTC
Read the original article Hit count: 378

In my javascript I have some bits of code specifically used for debugging which I don't want to include in the live site. Is there a way I can semi-comment these bits of code so that they run as javascript normally, but that yui compressor thinks they're comments and removes them?

© Stack Overflow or respective owner

Related posts about yui-compressor

Related posts about comments