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

svgo imagemin plugin
Install
$ npm install --save imagemin-svgo
Usage
const Imagemin = require('imagemin');
const imageminSvgo = require('imagemin-svgo');
new Imagemin()
.src('images/*.svg')
.dest('build/images')
.use(imageminSvgo())
.run();
You can also use this plugin with gulp:
const gulp = require('gulp');
const imageminSvgo = require('imagemin-svgo');
gulp.task('default', () => {
return gulp.src('images/*.svg')
.pipe(imageminSvgo()())
.pipe(gulp.dest('build/images'));
});
API
imageminSvgo(options)
options
Type: object
Pass options to svgo.
License
MIT © imagemin