Class PrecompressLinker

java.lang.Object
com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.linker.AbstractLinker
com.google.gwt.precompress.linker.PrecompressLinker

@Shardable @LinkerOrder(POST) public class PrecompressLinker extends AbstractLinker

A linker that precompresses the public artifacts that it sees. That way, a web server that uses gzip transfer encoding can use the precompressed files instead of having to compress them on the fly.

To use this linker, add the following to your module definition:

   <inherits name="com.google.gwt.precompress.Precompress"/>
 

The files to precompress are specified by the configuration property precompress.path.regexes. By default, the uncompressed artifacts are left in the artifact set. If the configuration property precompress.leave.originals is set to false, however, then the uncompressed version is removed.