Skip to content
Expansion plugin for compression via gzip
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md
README.md
expansive.es
pak.json

README.md

exp-gzip

Expansive plugin for gzip.

Provides the 'compress' service.

To install:

pak install exp-gzip

To configure in expansive.json:

  • gzip.enable — Enable compressing all files using gzip.
  • gzip.mappings — File extensions to compress. Defaults to: [ 'html', 'css', 'js', 'ttf', 'xml' ].
  • gzip.keep — Keep uncompressed file after compressing. Defaults to true.
{
    services: {
        compress: {
            enable: true,
            mappings:  [ 'html', 'css', 'js', 'ttf', 'xml' ],
            keep:   false
        }
    }
}

Get Pak from

https://www.embedthis.com/pak/

You can’t perform that action at this time.