maven 压缩静态文件


       statics_mvn
       
       
       
         
         net.alchim31.maven
         yuicompressor-maven-plugin
         1.3.0
         
            false
           
           UTF-8
           
           false
           
           false
           
           -1
           
           true
           
           
           true 
           
           
           
           
             **/*.js
             **/*.css
           
           ${basedir}/src/main/webapp/mergejscss
           
           
             **/*.min.js
             **/*.min.css
             scripts/data/*.js
             **/myfocus/*.js
             **/myfocus/**/*.css
             **/jquery.SuperSlide.2.1.1.js
             **/chart2.js
             **/line/*.js
           
           
         
       
      
      
       
            org.apache.maven.plugins
            maven-war-plugin
            
                  
                  
                    %regex[^.+(?:(?<!(?:-|\.)min)\.js)],  
                      
                    src/main/resources/config.xml,src/main/resources/jdbc.properties  
                  
             
        
        
        
     
      
       
              
              
                ${basedir}/statics  
                  
                    **/**.min.js  
                    **/**.min.css  
                  
              
      
   

你可能感兴趣的:(maven 压缩静态文件)