Maven Minify Plugin using YUI Compressor

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 Minify Maven Plugin page.

Published by

Samuel Santos

Java developer, Open Source hacker, Web technologist, JUG Leader.

  • Fredrik Wendt

    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.

    • Samuel Santos

      That would indeed be a nice feature. Can you please add an enhancement request at the project issue tracker?

    • Samuel Santos

      Exclude/include patterns have been added to the last snapshot (1.2-SNAPSHOT).