JSPM

  • Created
  • Published
  • Downloads 606932
  • Score
    100M100P100Q190186F
  • License MIT

svgo image-min plugin

Package Exports

  • imagemin-svgo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemin-svgo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

imagemin-svgo Build Status

svgo image-min plugin

Install

$ npm install --save imagemin-svgo

Usage

var Imagemin = require('image-min');
var svgo = require('imagemin-svgo');

var imagemin = new Imagemin()
    .src('foo.svg')
    .dest('foo-optimized.svg')
    .use(svgo());

imagemin.optimize();

Options

plugins

Type: Array
Default: []

Customize which SVGO plugins to use.

var imagemin = new Imagemin()
    .use(svgo({ plugins: [{ removeViewBox: false, removeEmptyAttrs: false }] }));

License

MIT © imagemin