{"repo":"jpkleemans/vite-svg-loader","free":true,"listed":false,"github":"https://github.com/jpkleemans/vite-svg-loader","clone":"git clone https://github.com/jpkleemans/vite-svg-loader.git","description":"Vite plugin to load SVG files as Vue components","language":"JavaScript","stars":699,"topics":["vite","vue","svg"],"license":"MIT","category":"ui-components","readme_excerpt":"Vite SVG loader Vite plugin to load SVG files as Vue components, using SVGO for optimization. Install Setup vite.config.js Import params URL SVGs can be imported as URLs using the ?url suffix: Raw SVGs can be imported as strings using the ?raw suffix: Component SVGs can be explicitly imported as Vue components using the ?component suffix: Default import config When no explicit params are provided SVGs will be imported as Vue components by default. This can be changed using the defaultImport config setting, such that SVGs without params will be imported as URLs (or raw strings) instead. vite.config.js SVGO Configuration vite.config.js Disable SVGO vite.config.js Skip SVGO for a single file SVGO can be explicitly disabled for one file by adding the ?skipsvgo suffix: Use with TypeScript If you use the loader in a Typescript project, you'll need to reference the type definitions inside vite-env.d.ts : Sponsors Thanks to Nexxtmove for sponsoring the development of this project. Your logo or name here? Sponsor this project.","default_branch":null,"files":null,"tree":[],"storefront":"/r/jpkleemans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jpkleemans/vite-svg-loader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}