How to minimize and process files inside webjars?

I just found Maven WebJars, but I would like to know how to minimize these files after completing my project. I would like to use something like a maven plugin, but I have not found anyone. It would be helpful if someone told me. Thanks

+4
source share
2 answers

There is a project called Web Resource Optimizer for Java (wro4j) that supports many JS plugins (JSHint, CSSLint, etc.). Check this page for use. Google Closure Compressor and YUI Compressor are supported. You can try to use them.

+1

: antrun , <exec> ( <javaexec>, , ) minifier. , , , , ${project.build.outputDirectory} (target/classes) maven.

0

All Articles