npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@pwa/plugin-zopfli

0.5.0

@lukeed

npmSnykSocket
Downloads:0
$ npm install @pwa/plugin-zopfli
DailyWeeklyMonthlyYearly

@pwa/plugin-zopfli

PWA plugin for preparing compressed assets with zopfli

Install

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

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

Usage

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

Config

Configurable via the zopfli key on your pwa.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.