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>
|
<plugin>
|
||||||
<groupId>net.alchim31.maven</groupId>
|
<groupId>net.alchim31.maven</groupId>
|
||||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
<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>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
@ -86,23 +86,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.alchim31.maven</groupId>
|
<groupId>net.alchim31.maven</groupId>
|
||||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
<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>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
This context file is used only in a development IDE for rapid development,
|
This context file is used only in a development IDE for rapid development,
|
||||||
it is never released with the Alfresco.war
|
it is never released with the Alfresco.war
|
||||||
=================================================================================================================-->
|
=================================================================================================================-->
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Setup docBase to something like share-amp/target/share-amp-war
|
<!-- Setup docBase to something like share-amp/target/share-amp-war
|
||||||
and path to /share -->
|
and path to /share -->
|
||||||
|
@ -383,6 +383,30 @@
|
|||||||
</lifecycleMappingMetadata>
|
</lifecycleMappingMetadata>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user