@pwa/plugin-brotli

0.5.0 • Public • Published

@pwa/plugin-brotli

PWA plugin for preparing compressed assets with brotli

Install

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

Usage

None – recognized by and attached to @pwa/core automatically!

Config

Configurable via the brotli key on your pwa.config.js file.

Default Config:

exports.brotli = {
  cache: true,
  threshold: 0,
  minRatio: 0.8,
  compressionOptions: {
    quality: 11,
    size_hint: 0,
    lgblock: 0,
    lgwin: 22,
    mode: 0
  }
}

Available Options:

See Options for compression-webpack-plugin.

Also see iltorb's Encoding Params for the compressionOptions object.

💡 Explanations for the brotli parameters are available here.

Readme

Keywords

none

Package Sidebar

Install

npm i @pwa/plugin-brotli

Weekly Downloads

1

Version

0.5.0

License

none

Unpacked Size

1.87 kB

Total Files

3

Last publish

Collaborators

  • lukeed
  • ragingwind