• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

compressor-maven-plugin: 是一个压缩 JS / CSS 的 Maven 插件,它是 Google Closure ...

原作者: [db:作者] 来自: 网络 收藏 邀请

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微信公众号


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
下一篇:
phoenix.webui.framework.archetype: WebUI自动化测试框架Maven骨架发布时间:2022-02-13
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap