Skip to content

Instantly share code, notes, and snippets.

@grofoli
Created February 4, 2014 21:18
Show Gist options
  • Save grofoli/8812560 to your computer and use it in GitHub Desktop.
Save grofoli/8812560 to your computer and use it in GitHub Desktop.
Sample usage of yuicompressor-maven.plugin 2
<plugins>
<!-- Plugin git repo: https://github.com/davidB/yuicompressor-maven-plugin. -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.3</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<sourceDirectory>${project.basedir}/src/main/js</sourceDirectory>
<excludeWarSourceDirectory>true</excludeWarSourceDirectory>
<outputDirectory>${project.basedir}/src/main/webapp/js</outputDirectory>
<aggregations>
<aggregation>
<removeIncluded>true</removeIncluded>
<insertNewLine>false</insertNewLine>
<output>${project.basedir}/src/main/webapp/js/coolmenu-all.js</output>
<inputDir>${project.basedir}/src/main/webapp/js</inputDir>
<includes>
<include>CoolMenu.js</include>
<include>Message.js</include>
<include>Level.js</include>
<include>Object.js</include>
<include>Page.js</include>
<include>Element.js</include>
<include>util.js</include>
<include>MenuItem.js</include>
<include>Menu.js</include>
</includes>
</aggregation>
</aggregations>
</configuration>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment