npm

Need private packages and team management tools?Check out npm Orgs. »

docz-plugin-svg-sprite-loader

0.1.2 • Public • Published

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-'
  })],
};

Keywords

none

install

npm i docz-plugin-svg-sprite-loader

Downloadsweekly downloads

148

version

0.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability