0.2.1 • Published 7 years ago

svg-sprite-plugin-fork v0.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

svg-sprite-plugin-fork

Webpack plugin based on svg-sprite. Fork of svg-sprite-plugin.

Usage

// webpack.config.js
const SVGSprites = require('svg-sprite-plugin');
module.exports = {
  plugins: [
    new SVGSprites({
      src: 'public/image/svg_icons/',
      log: 'verbose',
      bundles: {
        'sprite-1': {
           mode: {
             defs: {
               dest: path.resolve('svg_sprites/sprite-dest-1/defs'),
               sprite: 'sprite.svg',
               example: true
           }
        },
        'sprite-2': {
           mode: {
             defs: {
               dest: path.resolve('svg_sprites/sprite-dest-2/defs'),
               sprite: 'sprite.svg',
               example: true
           }
        }
      }
    })
  ]
}

Other configuration options