Is there a good JavaScript minifier?
UglifyJS2, used by the jQuery project.
Active
- Closure Compiler
- UglifyJS2
Deprecated
- YUI Compressor
- UglifyJS
Google Closure Compiler generally achieves smaller files than YUI Compressor, particularly if you use the advanced mode, which looks worryingly meddlesome to me but has worked well on the one project I've used it on:
Several big projects use UglifyJS, and I've been very impressed with it since switching.