zurb/foundation — Issue #68: Compress All JavaScript Components
Author: bentruyman
Created: 2011-11-02 00:47:51+00:00
State: open

Looking at the rendered JavaScript output in `foundation.js`, it looks as though all of the JavaScript components/plugins are only being concatenated together. It would be great if the final concatenated `foundation.js` file were ran through (ideally) UglifyJS. I believe `jammit` has support for this.

Of course, each component that contains copyright/licensing info would need to make sure their comments are in the following format to ensure the information isn't removed when comments are stripped:

/*!
* copyright/licensing here
*/

Note the `/*!` that opens the comment. Compressors like UglifyJS and YUI Compressor ignore comments in these blocks by convention, assuming they contain information that shouldn't be stripped.