Skip to content

Latest commit

 

History

History

plugin-imagemin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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