Maven插件以合并并最小化JavaScript [英] Maven plugin to concat and minify javascript

查看:64
本文介绍了Maven插件以合并并最小化JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文件夹的层次结构中有100多个javascript文件,我想要两组输出.一种是具有用于调试目的的串联版本,另一种是具有concat + minfy版本.我目前正在使用以下插件,但是在此我需要提供每个需要缩小的文件.我正在寻找一个仅需要父文件夹并满足上述条件的插件.

I have 100s of javascript files inside the hierarchy of folders and I want two sets of output. one is to have a concatenated version for debugging purposes and the other one is to have a concat + minfy version. I am currently using the below plugin but in this I need to provide each and every file that I need to minify. I am looking for a plugin which needs only parent folder and satisfy the above conditions.

<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7</version>

推荐答案

您应该查看 yui压缩maven插件听起来像您需要的东西.

You should take a look to yui compression maven plugin which sounds like the thing you need.

这篇关于Maven插件以合并并最小化JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆