MINIFIERS
An important part of the JavaScript build process is crunching the output to remove excess characters. Doing so ensures that only the smallest number of bytes are transmitted to the browser for parsing and ultimately speeds up the user experience. There are several such minifiers available with varying compression ratios.
Uglify
Uglify, currently in its third release, is a toolkit that allows you to minify, beautify, and compress your JavaScript code. It can be run on the command line, and it offers an extremely wide range of compression options that you can tweak to customize your minification.
- Website:
https://github.com/mishoo/UglifyJS2/
Google Closure Compiler
Although not strictly a minifier, Closure offers a number of optimization levels that will, as part of their optimization routines, minify your code.
JSMin
JSMin is a C-based cruncher written by Douglas Crockford that does basic JavaScript compression. It primarily...