Menu

My vendor JS not getting compressed

2007-10-31
2013-04-22
  • Kaustubh Basu

    Kaustubh Basu - 2007-10-31

    Hi all,

    Thanks for reading the post. I am using the Dojo framework for my application. The problem I am facing is when I am using the compress then the js files that are included to the vendor directory (mainly dojo.js and related files) are not getting compressed.

    My POM entry is like

    <plugin>
      <groupId>com.mobilvox.ossi.mojo</groupId>
      <artifactId>maven-js-plugin</artifactId>
      <version>1.2</version>
      <configuration>
        <mergeWarFiles>false</mergeWarFiles>
        <classifier>js-compressed</classifier>
        <replaceSiteJavaScript>true</replaceSiteJavaScript>
        <siteClassifier>site-compressesed</siteClassifier>
        <includes>
          <include>**/**.js</include>
        </includes>
      </configuration>
      <executions>
        <execution>
          <phase>package</phase>
          <goals>
            <goal>compress</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

    Can any body tell me if i am going wrong any where or I need to add some more entries

    Thanks
    Kaustubh Basu

     
    • A. Altemus

      A. Altemus - 2007-10-31

      What is your web application layout? The compress goal as you have it set up should compress all of the JS in the ${project.build.directory}/${project.build.finalName} directory.  It will place all of the compressed JS in a second war file which will have the classifier attached to it.

       
    • A. Altemus

      A. Altemus - 2007-11-19

      This has been implemented and is in the 1.3 final release, which will be released as soon as the documentation is completed for it.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.