PSVG - Programmable SVG for Vite
Install
npm i vite-plugin-psvg -D # yarn add vite-plugin-psvg -D
Add it to vite.config.js
// vite.config.js
import PSVG from 'vite-plugin-psvg'
export default {
plugins: [
PSVG()
],
}
Then use it as normal SVGs or images.
<img src='./hello.psvg'>
See the /example.
MIT License 2020 Anthony Fu