How do you automate Javascript minification for your Java web applications?

前端 未结 11 1969
广开言路
广开言路 2020-12-07 07:02

I\'m interested in hearing how you prefer to automate Javascript minification for your Java web apps. Here are a few aspects I\'m particularly interested in:

  • H
11条回答
  •  爱一瞬间的悲伤
    2020-12-07 07:24

    We are using Ant task to minify js files with YUICompressor during production build and put result into a separated folder. Then we upload those files to a web server. You can find some good examples for YUI+Ant integration in this blog.

    Here is an example:

    
        
            
            
            
            
            
            
            
        
    
    

提交回复
热议问题