2 Star 6 Fork 6

卓源软件 / compressor-maven-plugin

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

compressor-maven-plugin

介绍

是一个压缩 JS / CSS 的 Maven 插件,它是 Google Closure Compiler(压缩JS)和 YUI Compressor(压缩CSS) 的合体, 目前支持 ES2015、ES2016、ES2017、ES2018、ES2019

本项目地址:https://gitee.com/thinkgem/compressor-maven-plugin

由于时间有限,暂时实现了只 Closure Compiler 的整合,基础用法,在批量处理的情况下还待性能优化,另外还有一些参数需要开放配置选项。

看到这个项目的小伙伴,如果有时间可以继续完善此项目,赶快 Pull 我吧。

编译打包

执行 bin/package.bat 文件,打包并将插件安装到本地 Maven 仓库。

使用说明

<!-- JavaScript CSS Compress -->
<plugin>
	<groupId>com.jeesite.maven</groupId>
	<artifactId>compressor-maven-plugin</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<executions>
		<execution>
			<phase>prepare-package</phase>
			<goals>
				<goal>compress</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<jswarn>false</jswarn>
		<nosuffix>true</nosuffix>
		<force>true</force>
		<includes>
			<include>**/*.js</include>
			<include>**/*.css</include>
		</includes>
		<excludes>
			<exclude>**/*.min.js</exclude>
			<exclude>**/*.min.css</exclude>
		</excludes>
	</configuration>
</plugin>

技术交流方式

JeeSite4微信公众号

Comments ( 0 )

Sign in for post a comment

About

是一个压缩 JS / CSS 的 Maven 插件,它是 Google Closure Compiler(压缩JS)和 Yuicompressor (压缩CSS) 的合体,目前支持 ES2015、ES2016、ES2017、ES2018、ES2019 spread retract
Java and 2 more languages
Apache-2.0
Cancel

Releases

No release

compressor-maven-plugin

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/thinkgem/compressor-maven-plugin.git
git@gitee.com:thinkgem/compressor-maven-plugin.git
thinkgem
compressor-maven-plugin
compressor-maven-plugin
master

Search