SVGO imagemin plugin
npm install imagemin-svgo> SVGO imagemin plugin
``sh`
npm install imagemin-svgo
`js
import imagemin from 'imagemin';
import imageminSvgo from 'imagemin-svgo';
await imagemin(['images/*.svg'], {
destination: 'build/images',
plugins: [
imageminSvgo({
plugins: [{
name: 'removeViewBox',
active: false
}]
})
]
});
console.log('Images optimized');
`
Returns a Promise.
#### options
Type: object
Pass options to SVGO.
#### buffer
Type: Buffer`
The buffer to optimize.