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

前端 未结 11 1943
广开言路
广开言路 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:30

    I think you need a compression library, for example Granule tag.

    http://code.google.com/p/granule/

    It gzip and combine javascripts wrapped by g:compress tag using different methods, also has Ant task as well

    code sample is:

    
      
      
    
    ...
    
    

提交回复
热议问题