Skip to content

AlimovSV/svg-sprite-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-sprite-brunch

Adds svg-sprite support to brunch.

Usage

Install the plugin via npm with npm install --save-dev svg-sprite-brunch.

Or, do manual install:

  • Add "svg-sprite-brunch": "x.y.z" to package.json of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version.
  • If you want to use git version of plugin, add "svg-sprite-brunch": "https://github.com/AlimovSV/svg-sprite-brunch.git".

Options

module.exports = {
  conventions: {
    // Source SVG files should be placed under assets.
    assets: /^(web\/static\/assets\/(?!svg))/
  },
}

To pass any other options to svg-sprite:

module.exports = {
  plugins: {
    svgsprite: {
      mode: {
        symbol: { dest: './priv/static', sprite: 'img/sprite.svg' }
      }
    }
  }
}

Example

svg-sprite-brunch-example

About

Adds svg-sprite support to brunch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published