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

Vite plugin to load SVG files as Vue components

Results 34 vite-svg-loader issues
Sort by recently updated
recently updated
newest added

I am using `https://github.com/antfu/unplugin-vue-components` to automatically load all my components, including the SVG ones - but when I use it - it won't show and my console shows the following...

I get this error when im trying to load a svg file as component from public/: `Uncaught DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('/icons/moon.svg?component') is...

This plugin should send the file path to `svgo`. The path is an optional, but very useful param for `svgo`. https://github.com/svg/svgo#optimize ![Capture d’écran, le 2022-07-07 à 10 52 27](https://user-images.githubusercontent.com/17392251/177804068-5f9efd68-fc38-40c3-8a9d-948ea1bfedaf.png) For...

@jpkleemans Hi, I used this but failed when build for production. It's working in dev mode ``` import { computed, defineComponent, defineAsyncComponent } from 'vue' export default defineComponent({ props: {...

Hi, When I include style definitions in a `` tag, the tag including the styles are being removed when loaded as inline svg using the svg loader. Is this an...

```ts // vite.config.ts import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import svgLoader from 'vite-svg-loader'; import legacy from '@vitejs/plugin-legacy'; import hmrFollow from 'vite-plugin-hmr-follow'; import path from 'path'; export...

I have a Vue 2 + Vite project utilizing this plugin. ```ts import svgLoader from 'vite-svg-loader' ... svgLoader({ defaultImport: 'raw' }) ``` When I run `vite` (or `yarn dev`) everything...

``` Configuration error: Could not locate module @assets/images/icon-calendar.svg?component mapped as: /Users/ahmedyagoub/plankk/phoenix/src/assets/$1. Please check your configuration for these entries: { "moduleNameMapper": { "/@assets\/(.*)/": "/Users/ahmedyagoub/plankk/phoenix/src/assets/$1" }, "resolver": undefined } ```