Skip to content

kanweiwei/vite-plugin-react-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-react-svg

Usage

import svgPlugin from "vite-plugin-react-svg";


// vite.config.js
// ...
plugins: [
    svgPlugin(options) // svgr options
]

// ...
import svgUrl, { ReactComponent as SvgIcon } from '***.svg';
// ...
<SvgIcon style={{fontSize: 16}} />
// ...
<img src={svgUrl}  alt=""/>
// ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published