maven css/js 压缩配置
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<jswarn>false</jswarn>
<nosuffix>true</nosuffix>
<linebreakpos>-1</linebreakpos>
<sourceDirectory>src/main/webapp/static</sourceDirectory>
<outputDirectory>src/main/webapp/static/dist</outputDirectory>
<includes>
<include>js/*.js</include>
<include>css/*.css</include>
</includes>
<excludes>
<exclude>**/*min.js</exclude>
<exclude>**/*min.css</exclude>
</excludes>
</configuration>
</plugin>