Skip to content

A Babel plugin to replace SVG fill colours with their id values for further manipulation.

Notifications You must be signed in to change notification settings

asseco-pst/babel-plugin-svgr-fill-replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

SVGR Fill Replace Babel Plugin

This plugin is to be used as a JSX plugin for SVGR.

Additional documentation

Usage

Add the package by adding "babel-plugin-svgr-fill-replace": "github:Exictos-DCS/babel-plugin-svgr-fill-replace", to your project dependencies.

In the svgr config file add the following:

{
  jsx: {
    babelConfig: {
      plugins: [
        ['babel-plugin-svgr-fill-replace'],
      ],
    },
  },
}

About

A Babel plugin to replace SVG fill colours with their id values for further manipulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published