@siteone/builder-plugin-zopfli

0.12.0 • Public • Published

@siteone/builder-plugin-zopfli

plugin for preparing compressed assets with zopfli

Install

$ npm install --save-dev @siteone/builder-plugin-zopfli

Important: Requires Node 8.x or above to work!

Usage

None – recognized by and attached to @siteone/builder-core automatically!

Config

Configurable via the zopfli key on your bldr.config.js file.

Default Config:

exports.zopfli = {
  cache: true,
  threshold: 0,
  minRatio: 0.8,
  compressionOptions: {
    numiterations: 15
  }
}

Available Options:

See Options for compression-webpack-plugin.

Also see universal-zopfli-js's Options for the compressionOptions object.

Readme

Keywords

none

Package Sidebar

Install

npm i @siteone/builder-plugin-zopfli

Weekly Downloads

2

Version

0.12.0

License

MIT

Unpacked Size

1.71 kB

Total Files

3

Last publish

Collaborators

  • supermartin
  • siteonecz
  • hlavo-siteone
  • viktorbezdek
  • jiri.cerhan