SVGO imagemin plugin
npm install imagemin-svgoimport 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<Buffer>.
Type: object
Pass options to SVGO.
Type: Buffer
The buffer to optimize.