grunt-svgo

0.1.0 • Public • Published

grunt-svgo

About

Optimize SVG files with SVGO.

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install --save-dev grunt-svgo

Usage

module.exports = function (grunt) {
  grunt.initConfig({
    svgo: {
      static: {
        files: { 
          'dist/foo.svg': 'src/foo.svg',
          'dist/bar.svgg': 'src/bar.svg'
        }
      },
      dynamic: {
        files: [{
          expand: true,
          cwd: 'src/', 
          src: ['**/*.{svg}'],
          dest: 'dist/'
        }]
      }
    }
  });
 
  grunt.loadNpmTasks('grunt-svgo');
};

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-svgo

Weekly Downloads

58

Version

0.1.0

License

MIT

Last publish

Collaborators

  • 1000ch