mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-19 17:15:24 +00:00
DEVPLAT-31: Add JS minification, #269
This commit is contained in:
parent
c9865d2295
commit
e2da89679c
@ -61,23 +61,6 @@
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||
<version>1.5.1</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>alfresco/**/*.*</exclude>
|
||||
<exclude>**/*-min.js</exclude>
|
||||
<exclude>**/*.css</exclude>
|
||||
</excludes>
|
||||
<resources/>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compress-js</id>
|
||||
<goals>
|
||||
<goal>compress</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
@ -106,4 +89,4 @@
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
</project>
|
@ -86,23 +86,6 @@
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||
<version>1.5.1</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>alfresco/**/*.*</exclude>
|
||||
<exclude>**/*-min.js</exclude>
|
||||
<exclude>**/*.css</exclude>
|
||||
</excludes>
|
||||
<resources/>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compress-js</id>
|
||||
<goals>
|
||||
<goal>compress</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
@ -124,4 +107,4 @@
|
||||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
</project>
|
@ -3,7 +3,6 @@
|
||||
This context file is used only in a development IDE for rapid development,
|
||||
it is never released with the Alfresco.war
|
||||
=================================================================================================================-->
|
||||
-->
|
||||
|
||||
<!-- Setup docBase to something like share-amp/target/share-amp-war
|
||||
and path to /share -->
|
||||
|
@ -383,6 +383,30 @@
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Compress JavaScript files and store as *-min.js -->
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||
<version>1.5.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compress-js</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>compress</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/site-webscripts/**</exclude>
|
||||
<exclude>**/*.lib.js</exclude>
|
||||
<exclude>**/*.css</exclude>
|
||||
</excludes>
|
||||
<warSourceDirectory>src/main/resources/META-INF</warSourceDirectory>
|
||||
<jswarn>false</jswarn>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user