@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-plugindefaults.
exports.imagemin = {
test: /\.(svg|jpe?g|png|gif)$/i
}
Available Options:
See imagemin-webpack-plugin for documentation.
See also
@pwa/cli(3), @pwa/core(3), @pwa/plugin-brotli(3), @pwa/plugin-buble(3), @pwa/plugin-critters(3), @pwa/plugin-eslint(3), @pwa/plugin-gzip(3), @pwa/plugin-offline(3), @pwa/plugin-prettier(3), @pwa/plugin-sw-precache(3)