0.5.0 • Published 4 years ago

@pwa/plugin-imagemin v0.5.0

Weekly downloads
248
License
-
Repository
-
Last release
4 years ago

@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.