@pwa/plugin-imagemin

0.5.0 • Public • Published

@pwa/plugin-imagemin

PWA plugin for to compress image assets

Install

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

Usage

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

Note: Disabled during development (aka, pwa watch)

Config

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

Default Config:

Note: In addition to the below, inherits imagemin-webpack-plugin defaults.

exports.imagemin = {
  test: /\.(svg|jpe?g|png|gif)$/i
}

Available Options:

See imagemin-webpack-plugin for documentation.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @pwa/plugin-imagemin

    Weekly Downloads

    0

    Version

    0.5.0

    License

    none

    Unpacked Size

    1.28 kB

    Total Files

    3

    Last publish

    Collaborators

    • lukeed
    • ragingwind