今天重新听别人讲了一下前端UI的封装
主要收获是js 的压缩
使用 YUI Compressor Maven压缩插件
<plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-plugin</artifactId> <version>1.3.0</version> <executions> <execution> <phase>clean</phase> <goals> <goal>compress</goal> </goals> </execution> </executions> </plugin>
以及使用<!-- maven-antrun-plugin -->
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> </executions> </plugin>