Rename a generated file in Maven before building WAR

前端 未结 2 639
暗喜
暗喜 2021-01-14 08:49

Fingers crossed you can help me!

I am using SmartSprites to combine the PNGs on my landing page into one, so that it will load quicker.

SmartSprite will exam

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 09:23

    You can use the Maven WAR plugin:

    
        maven-war-plugin
        
            
                
                    
                    
                    
                        
                        
                    
                
            
        
    
    

    You should also configure SmartSprites to use a different output directory to preserve the original CSS filename. Try the output-dir-path option with an empty css-file-suffix value.

提交回复
热议问题