@pwa/plugin-gzip
v0.5.0
Published
> [`PWA`](https://pwa.cafe/) plugin for preparing compressed assets with `gzip`
Readme
@pwa/plugin-gzip
PWAplugin for preparing compressed assets withgzip
Install
$ npm install --save-dev @pwa/plugin-gzipUsage
None – recognized by and attached to @pwa/core automatically!
Config
Configurable via the gzip key on your pwa.config.js file.
Default Config:
exports.gzip = {
cache: true,
threshold: 0,
minRatio: 0.8,
compressionOptions: {
level: 9
}
}Available Options:
See Options for compression-webpack-plugin.
Also see zlib Options for the compressionOptions object.
