is not current version
Last Version 1.0.2

com.github.eliayng:compress-maven-plugin M1.0.0-releases

配置监控信息,在web.xml中添加 <filter> <description>拦截获取js与css过滤</description> <filter-name>MergeFilter</filter-name> <filter-class>com.njzxw.filter.MergeFilter</filter-class> <init-param> <!-- js合并输出路径 --> <param-name>jsDir</param-name> <param-value>${js.path}</param-value> </init-param> <init-param> <!-- css合并输出路径 --> <param-name>cssDir</param-name> <param-value>${css.path}</param-value> </init-param> </filter> 同时添加一个合并js\css对应一个merge.xml,最好放置在同级,如: <merge> <group name="sss" > <js path="js/common/common.js" /> <js path="js/common/index.js" /> <css path="css/common/animate.css" /> <css path="css/common/normalize.css" /> </group> </merge> 访问项目:xxx/sss.js xxx/sss.css 同时配合maven插件: compress-maven-plugin结合使用: <plugin> <groupId>com.github.eliayng</groupId> <artifactId>compress-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <phase>compile</phase> <goals> <goal>compress</goal> </goals> </execution> </executions> <configuration> <skip>${skipCompress}</skip> <poolNum>50</poolNum> <jsOutDir>${jsOutDir}</jsOutDir> <cssOutDir>${cssOutDir}</cssOutDir> <!--是否监控编译class文件--> <isCompressClass>true</isCompressClass> <!-- 是否复制资源文件 --> <isResourcesCopy>true</isResourcesCopy> </configuration> </plugin>

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.eliayng
ArtifactId

ArtifactId

compress-maven-plugin
Version

Version

M1.0.0-releases
Type

Type

jar

Download compress-maven-plugin M1.0.0-releases


<!-- https://jarcasting.com/artifacts/com.github.eliayng/compress-maven-plugin/ -->
<dependency>
    <groupId>com.github.eliayng</groupId>
    <artifactId>compress-maven-plugin</artifactId>
    <version>M1.0.0-releases</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.eliayng/compress-maven-plugin/
implementation 'com.github.eliayng:compress-maven-plugin:M1.0.0-releases'
// https://jarcasting.com/artifacts/com.github.eliayng/compress-maven-plugin/
implementation ("com.github.eliayng:compress-maven-plugin:M1.0.0-releases")
'com.github.eliayng:compress-maven-plugin:jar:M1.0.0-releases'
<dependency org="com.github.eliayng" name="compress-maven-plugin" rev="M1.0.0-releases">
  <artifact name="compress-maven-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.eliayng', module='compress-maven-plugin', version='M1.0.0-releases')
)
libraryDependencies += "com.github.eliayng" % "compress-maven-plugin" % "M1.0.0-releases"
[com.github.eliayng/compress-maven-plugin "M1.0.0-releases"]