PWAplugin for to compress image assets
$ npm install --save-dev @pwa/plugin-imagemin
None – recognized by and attached to @pwa/core automatically!
Note: Disabled during development (aka,
pwa watch)
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.