Skip to content

Gulp wp-scripts wrapper for WordPress development

License

Notifications You must be signed in to change notification settings

Gecka-Apps/gulp-wp-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

const gulp = require('gulp');
const 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.

About

Gulp wp-scripts wrapper for WordPress development

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%