Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

vite-awesome-svg-loader

Imports SVGs as source code, base64 and data URI. Preserves stroke width, replaces colors with currentColor. Optimizes SVGs with SVGO. Creates SVG sprites.
https://github.com/matafokka/vite-awesome-svg-loader

Last synced: about 4 hours ago
JSON representation

  • Additional information

    • What are loading/import types (url, source, etc)?

    • Should I always import my images like shown in the examples? Can I simplify this?

      • ES modules - legacy](https://www.npmjs.com/package/@vitejs/plugin-legacy) as shown in the demos.
    • Comparison with other loaders

      • vite-svg-loader - demo/README.md):
      • @poppanator/sveltekit-svg - plugin-react-svg](https://github.com/damianstasik/vite-svg), [@svgx/vite-plugin-react](https://github.com/salihbenlalla/svgx), [rollup-plugin-svelte-svg](https://www.npmjs.com/package/rollup-plugin-svelte-svg), [vite-plugin-solid-svg](https://github.com/jfgodoy/vite-plugin-solid-svg) and many more**
  • Usage

  • Integrations