Skip to content

canvascat/vite-svg-sprite

 
 

Repository files navigation

vite-svg-sprite

Used to generate svg sprite map for vite.

downloads npm version License: MIT

Motivation

Usage

pnpm add vite-svg-sprite
// vite.config.ts
import { createSvgSpritePlugin } from 'vite-svg-sprite'

// @see https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // ...other plugins
    createSvgSpritePlugin(/* options */),
  ],
})

or @see

Options

About

Vite Plugin for fast creating SVG sprites.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 78.2%
  • Vue 15.3%
  • Shell 3.9%
  • HTML 2.6%