Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

yui compressor maven plugin doesnt compress the js files using phonegap #37

Open
ghost opened this issue Jan 24, 2012 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Jan 24, 2012

Hi, my js files get aggregated in one, but not compressed. I think it's because I'm using phonegap to develop mobile apps, but I have not seen any conflicts. This is my pom.xml:

        <plugin>
            <groupId>net.alchim31.maven</groupId>
            <artifactId>yuicompressor-maven-plugin</artifactId>
            <version>1.2</version>
            <executions>
                <execution>
                   <phase>process-resources</phase>
                    <goals>
                        <goal>compress</goal>
                    </goals>
                </execution>
            </executions>        
            <configuration>
                <preProcessAggregates>true</preProcessAggregates>
                <failOnWarning>true</failOnWarning>
                <aggregations>
                    <aggregation>
          <!-- remove files after aggregation (default: false)
          <removeIncluded>true</removeIncluded>
          -->
          <!-- insert new line after each concatenation (default: false) -->
                        <insertNewLine>true</insertNewLine>
                        <output>${basedir}/assets/www/js/test-all.js</output>
          <!-- files to include, path relative to output's directory or absolute path-->
          <!--inputDir>base directory for non absolute includes, default to parent dir of output</inputDir-->
                        <includes>
                            <include>**/*.js</include>
                        </includes>        
                    </aggregation>
                </aggregations>
            </configuration>
        </plugin>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants