| .. | ||
| node_modules/is-svg | ||
| index.js | ||
| license | ||
| package.json | ||
| readme.md | ||
imagemin-svgo 
SVGO imagemin plugin
Install
$ npm install imagemin-svgo
Usage
const imagemin = require('imagemin');
const imageminSvgo = require('imagemin-svgo');
(async () => {
	await imagemin(['images/*.svg'], 'build/images', {
		use: [
			imageminSvgo({
				plugins: [
					{removeViewBox: false}
				]
			})
		]
	});
	console.log('Images optimized');
})();
API
imageminSvgo([options])(buffer)
Returns a Promise<Buffer>.
options
Type: Object
Pass options to SVGO.
buffer
Type: Buffer
Buffer to optimize.
License
MIT © imagemin