开源软件名称(OpenSource Name):samaxes/minify-maven-plugin开源软件地址(OpenSource Url):https://github.com/samaxes/minify-maven-plugin开源编程语言(OpenSource Language):Java 84.4%开源软件介绍(OpenSource Introduction):Minify Maven PluginMinify Maven Plugin combines and minimizes your CSS and JavaScript files for faster page loading. It produces a merged and a minified version of your CSS and JavaScript resources which can be re-used across your project. Under the hood, it uses the YUI Compressor and Google Closure Compiler but has a layer of abstraction around these tools which allows for other tools to be added in the future. BenefitsReduce HTTP Requests
Compress JavaScript and CSS
UsageConfigure your project's <build>
<plugins>
<plugin>
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7.6</version>
<executions>
<execution>
<id>default-minify</id>
<configuration>
<charset>UTF-8</charset>
<cssSourceFiles>
<cssSourceFile>file-1.css</cssSourceFile>
<!-- ... -->
<cssSourceFile>file-n.css</cssSourceFile>
</cssSourceFiles>
<jsSourceFiles>
<jsSourceFile>file-1.js</jsSourceFile>
<!-- ... -->
<jsSourceFile>file-n.js</jsSourceFile>
</jsSourceFiles>
<jsEngine>CLOSURE</jsEngine>
</configuration>
<goals>
<goal>minify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build> Notice that the v1.6.X branch contains the last Java 6 compatible releases. Java 7 is required for new versions. LicenseThis distribution is licensed under the terms of the Apache License, Version 2.0 (see LICENSE.txt). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论