Just like CSS, but for JS.
Note, there isn't a simple way to compress JS files. The best ways are external scripts like:
So I propose we allow for a hook_js_pack() in there where it says compression and an external module could make use of either of these styles.
Otherwise, have it and test away.
This is *phase 1* adding in JS aggregation.
Phase 2 will support remixing both CSS and JS with new properties and consolidation -- too heavy to do both JS aggregation & remixing in the same patch.