Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

antfu/vite-plugin-psvg

Open more actions menu

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.