Nomenclature Processing Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

gulp-svgo

2.1.0 • Public • Published

gulp-svgo

NPM Version NPM Downloads Build Status

Optimizing SVG vector graphics files with Gulp

A thin wrapper around svgo for Gulp. Will pass-through any non-svg files unaltered so you can use in conjuction with other image optimzation tools if you don't want a separate task for different file formats.

Install

$ npm install --save-dev gulp-svgo

Usage

let gulp = require('gulp'),
    svgo = require('gulp-svgo');
 
gulp.task('images', () => {
 
    return gulp.src('src/img/*')
        .pipe(svgo())
        .pipe(gulp.dest('dest/img'));
});

Options

Options are passed directly to svgo instance.

install

npm i gulp-svgo

Downloadsweekly downloads

3,901

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability