Following the previous article Combine and minimize JavaScript and CSS files for faster loading, I implemented a similar solution as a Maven plugin.
This plugin combines and minimizes JavaScript and CSS files using YUI Compressor for faster page loading.
More details can be found on the Maven Minify Plugin page.
Nice! However, having to specify each JS-file is tedious when you start scaling (we’re at some 20K lines of JavaScript code and ~150 source files). Exclude/include patterns would be nice to have.
That would indeed be a nice feature. Can you please add an enhancement request at the project issue tracker?
Exclude/include patterns have been added to the last snapshot (1.2-SNAPSHOT).