Automate Eclipse “Yui Compressor…”

前端 未结 4 1195
既然无缘
既然无缘 2021-01-14 00:17

Eclipse PDT has this handy built-in Yui Compressor in the context menu for files. But when building a webapp that uses multiple such files,

4条回答
  •  迷失自我
    2021-01-14 00:33

    Well, I actually downloaded the jar and created an ANT task to to CSS and JS compression. I work on Tomcat, so it includes tasks to upload stuff, clean work/ directory and things like that. Hope it helps.

    
    
    
    
        
    
        
    
        
        
        
        
    
        
        
        
    
        
    
        
    
        
            
            
                
            
        
    
        
            
                
                
            
        
    
        
    
        
            
                
        
        
    
        
    
            
    
            
                
                    
                
            
    
            
    
        
    
        
    
        
    
            
            
            
    
    
            
                
                    
                
            
    
            
                
                    
                
            
    
            
    
            
                
                    
                
            
    
            
    
        
    
        
    
        
            
            
            
            
        
    
        
    
        
            
            
        
    
        
    
        
    
            
            
    
            
            
            
            
    
            
            
                
                    
                
            
    
            
            
                
                    
                
            
    
            
            
                
                    
                
                
                
                
                
                
                
                
                
                
                
                
            
        
    
        
    
        
    
            
            
    
            
            
            
            
    
            
            
                
                    
                
            
    
            
            
                
                    
                
            
    
            
            
    
                
                    
                
                
                
                
                
                
                
                
                
                
                
                
            
    
        
    
        
    
        
            
            
                
                    
                
            
        
    
        
    
        
            
            
                
                    
                
            
        
    
        
    
        
            
            
    
            
            
    
            
            
        
    
        
    
        
            
            
    
            
            
    
            
            
        
        
    
    
    

提交回复
热议问题