docz-plugin-svg-sprite-loader
A plugin to use svg-sprite-loader with docz
Last updated a year ago by christienguy .
MIT · Original npm · Tarball · package.json
$ cnpm install docz-plugin-svg-sprite-loader 
SYNC missed versions from official npm registry.

docz-plugin-svg-sprite-loader

Allows you to use svg-sprite-loader in your Docz config.

This currently replaces all other svg loaders.

Install

$  yarn add docz-plugin-svg-sprite-loader

Usage

import { svgSpriteLoader } from 'docz-plugin-svg-sprite-loader';

export default {
  plugins: [svgSpriteLoader()],
};

Options

Options can be passed into the function as the first argument. See svg-sprite-loader for the fill list of options.

import { svgSpriteLoader } from 'docz-plugin-svg-sprite-loader';

export default {
  plugins: [svgSpriteLoader({
    symbolId: 'icon-'
  })],
};

Current Tags

  • 0.1.2                                ...           latest (a year ago)

3 Versions

  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 7
Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |