0.1.0 • Published 10 years ago

grunt-svgo v0.1.0

Weekly downloads
92
License
MIT
Repository
-
Last release
10 years ago

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