Yui Compressor mojo
as we´re into bundling Wicket/JQuery-frontend components lately, we needed a way of automatically minimizing JavaScript on deployment.
luckily, there is an excellent mojo out there : http://alchim.sourceforge.net/yuicompressor-maven-plugin
the nice thing is, it does not only minify but also check and obfuscate, which turned out to be very handy!
if you´re bundling javascript (or even css, which it minimizes as well), you want to give it a try. it is as easy as adding
| XML | | copy | | ? |
<plugin> |
<groupid>net.sf.alchim</groupid> |
<artifactid>yuicompressor-maven-plugin</artifactid> |
<executions> |
<execution> |
<goals> |
<goal>compress</goal> |
</goals> |
</execution> |
</executions> |
</plugin> |
to the build part of your pom.xml
NEAT++ !

