編集: 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 ファイルを 1 つのファイルにコピーできます。しかし、それを圧縮することはできません。私を助けてください...
<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>