访问项目:xxx/sss.js xxx/sss.css 同时配合maven插件: compress-maven-plugin结合使用: com.github.eliayng compress-maven-plugin 1.0.0 compile compress ${skipCompress} 50 ${jsOutDir} ${cssOutDir} true true " > mvncenter: com.github.eliayng:compress-maven-plugin:1.0.2
c

compress-maven-plugin

配置监控信息,在web.xml中添加 拦截获取js与css过滤 MergeFilter com.njzxw.filter.MergeFilter jsDir ${js.path} cssDir ${css.path} 同时添加一个合并js\css对应一个merge.xml,最好放置在同级,如: 访问项目:xxx/sss.js xxx/sss.css 同时配合maven插件: compress-maven-plugin结合使用: com.github.eliayng compress-maven-plugin 1.0.0 compile compress ${skipCompress} 50 ${jsOutDir} ${cssOutDir} true true
https://github.com/eliayng/compress-maven-plugin
The Eliayng License, Version 1.0
yang1
Files download
File Operation
compress-maven-plugin-1.0.2.jar download
compress-maven-plugin-1.0.2.pom download
compress-maven-plugin-1.0.2-sources.jar download
Apache Maven
<dependency>
  <groupId>com.github.eliayng</groupId>
  <artifactId>compress-maven-plugin</artifactId>
  <version>1.0.2</version>
  <type>maven-plugin</type>
</dependency>
Gradle Groovy
implementation 'com.github.eliayng:compress-maven-plugin:1.0.2'
Gradle Kotlin
implementation("com.github.eliayng:compress-maven-plugin:1.0.2")
Scala SBT
libraryDependencies += "com.github.eliayng" % "compress-maven-plugin" % "1.0.2"
Groovy Grape
@Grapes(
  @Grab(group='com.github.eliayng', module='compress-maven-plugin', version='1.0.2')
)
Apache Ivy
<dependency org="com.github.eliayng" name="compress-maven-plugin" rev="1.0.2" />
Leiningen
[com.github.eliayng/compress-maven-plugin "1.0.2"]
Apache Buildr
'com.github.eliayng:compress-maven-plugin:jar:1.0.2'