vite-svg-loader icon indicating copy to clipboard operation
vite-svg-loader copied to clipboard

Base64 output and class parameter

Open nbrignol opened this issue 3 months ago • 0 comments

Refactored to regex, allowing me to :

  • add a base64 output option
  • add an optional parameter to pass a custom class (for raw or base64 output), applied to the SVG element

Usage :

./my-svg.svg?base64
./my-svg.svg?base64=customclass
./my-svg.svg?raw=customclass

nbrignol avatar Mar 06 '24 22:03 nbrignol