Class ClosureCompressorPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.portal.resource.compressor.BaseResourceCompressorPlugin
org.exoplatform.portal.resource.compressor.impl.ClosureCompressorPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, ResourceCompressorPlugin

public class ClosureCompressorPlugin extends BaseResourceCompressorPlugin
A compressor based on the Google Closure Tools javascript compiler. This plugin compresses javascript resources and provides three levels of compression, configured via the level init param:
  • basic encodes with the WHITESPACE_ONLY Closure level
  • simple encodes with the SIMPLE_OPTIMIZATIONS Closure level
  • advanced encodes with the ADVANCED_OPTIMIZATIONS Closure level
The precise meaning of the Closure levels are described on this page.