sslepian
sslepian

Reputation: 1921

Combine, minify, and replace references to JS and CSS files

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

Answers (1)

Chad Killingsworth
Chad Killingsworth

Reputation: 14411

Google Closure Tools provides all of this functionality.

References

The Closure-compiler supports Maven integration.

Upvotes: 1

Related Questions