Nonlinear Performance Magnification
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

imagemin-svgo

8.0.0 • Public • Published

imagemin-svgo Build Status

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

Install

npm i imagemin-svgo

DownloadsWeekly Downloads

687,695

Version

8.0.0

License

MIT

Unpacked Size

2.89 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar