【发布时间】:2012-08-07 11:52:27
【问题描述】:
编辑:感谢 khmarbaise 的回复。我没有检查我的目标文件夹...现在它工作得更好了...但问题是它没有压缩一些空白。下面是我用单个文件压缩后得到的输出。
Ext.onReady(function(){new Ext.Window({title:"Hello",width:300,height:500,items:getItems()}).show() });
function getItems(){var a=new Ext.Panel({title:"我是项目面板"}); 返回一个 };
在分号之后,它不压缩空格.....
下面是我用来压缩 JS 文件的代码。我可以将所有 js 文件复制到一个文件中。但无法压缩。请帮帮我...
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<removeIncluded>false</removeIncluded>
<jswarn>false</jswarn>
<aggregations>
<aggregation>
<insertNewLine>true</insertNewLine>
<removeIncluded>false</removeIncluded>
<inputDir>src/main/webapp/resources/js</inputDir>
<includes>
<include>D:/TestWorkSpace/myProject/src/main/webapp/resources/js/panel.js</include>
</includes>
<output>src/main/webapp/resources/js/min.js</output>
</aggregation>
</aggregations>
</configuration>
</plugin>
【问题讨论】:
标签: javascript spring maven spring-mvc