antfu / vite-plugin-psvg

PSVG for Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSVG Vite Plugin

PSVG - Programmable SVG for Vite

Install

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'>

Example

See the /example.

License

MIT License © 2020 Anthony Fu

About

PSVG for Vite

License:MIT License


Languages

Language:TypeScript 77.3%Language:Vue 13.4%Language:HTML 9.4%