Feuerwehr-eppingen/node_modules/imagemin-svgo
2020-06-04 13:20:10 +02:00
..
node_modules Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
index.js Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
license Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
package.json Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
readme.md Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00

imagemin-svgo Build Status Build status

SVGO imagemin plugin

Install

$ npm install imagemin-svgo

Usage

const imagemin = require('imagemin');
const imageminSvgo = require('imagemin-svgo');

imagemin(['images/*.svg'], 'build/images', {
	use: [
		imageminSvgo({
			plugins: [
				{removeViewBox: false}
			]
		})
	]
}).then(() => {
	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