I need to remove comments (the "// This is a comment" like comments) from some Javascript code, I'm using YUI compressor, there is an option to do that?

Thanks

Thanks for the response, I'm trying to merge several scripts and after compress with YUI; I've found if I compress and then merge the scripts it works, but if I merge and then compress, something goes wrong and I got a broken script

I merge then compress in my project and it works just fine. Do your scripts rely on lots of global variables and global functions? Maybe that's creating a problem for the compressor. How is it "broken"?
–
PointyAug 25 '10 at 12:51

the recommended way is to MINIFY each file first, then combine them secondly. Not the other way around. Is there any reason why you can't Minify then Combine?
–
Pure.KromeSep 24 '10 at 12:09