Reputation: 1921
Is there a solution out there that will combine and minify js and css files, and then replace the references to them in the original html files? I've found a number of solutions that will minify and combine, but none that will replace the references in the original html file. The Web Minifier Maven plugin from http://mojo.codehaus.org/webminifier-maven-plugin/ does exactly what I want for JS files, but doesn't deal with CSS files. Is there anything that does? Our build process uses Maven, so the solution needs to be either a Maven plugin or a script.
Upvotes: 8
Views: 1673
Reputation: 14411
Google Closure Tools provides all of this functionality.
The Closure-compiler supports Maven integration.
Upvotes: 1