Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite SVG transform to Symbol tag

Vite plugin to load SVG file transform to symobl tag strings

Version Downloads License

Install

npm install vite-svg-symbol-loader --save-dev

Setup

vite.config.js

import svgSymbol from 'vite-svg-symbol-loader'

export default defineConfig({
  plugins: [
    svgSymbol({
      id: 'icon-[name]'
    })
  ]
})

SVGO Configuration

vite.config.js

svgLoader({
  id: 'icon-[name]'
  svgo: {
    multipass: true
  }
})

About

Vite plugin to load SVG file transform to symobl tag strings

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages