chin-plugin-svgr

0.0.3 • Public • Published

chin-plugin-svgr

npm npm Build Status Coverage Status

chin plugin using svgr.

Installation

yarn add -D chin chin-plugin-svgr

Usage

import svgr, { merge } from 'chin-plugin-svgr'
 
const svg2cmp = svgr()
const svg2cmps = merge()
 
export default {
  put,
  out,
  processors: [
    ['dir', { svg: svg2cmps }],
    ['*', { svg: svg2cmp }]
  ],
  after: () => {
    const codes = svg2cmps.after()
  }
}

options is passed in both.

License

MIT (http://opensource.org/licenses/MIT)

Package Sidebar

Install

npm i chin-plugin-svgr

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.52 kB

Total Files

4

Last publish

Collaborators

  • kthjm