@pwa/plugin-gzip

0.5.0 • Public • Published

@pwa/plugin-gzip

PWA plugin for preparing compressed assets with gzip

Install

$ npm install --save-dev @pwa/plugin-gzip

Usage

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.0
    1
  • 0.4.1
    0
  • 0.3.0
    1

Package Sidebar

Install

npm i @pwa/plugin-gzip

Weekly Downloads

2

Version

0.5.0

License

none

Unpacked Size

1.43 kB

Total Files

3

Last publish

Collaborators

  • lukeed
  • ragingwind