0.5.0 • Published 6 years ago
@pwa/plugin-imagemin v0.5.0
@pwa/plugin-imagemin
PWAplugin for to compress image assets
Install
$ npm install --save-dev @pwa/plugin-imageminUsage
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.
0.5.0
6 years ago