-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public path not matched when build #25
Comments
Hi, thanks for reporting. Could you share an example project so I can reproduce the problem, and investigate how to resolve it. |
Hi, i created this repo to reproduce the issue: https://github.com/Arthurin915/vite-svg-loader-issue I'm also confused why the svg loader would run an error if i'm not even importing it as a component, i'm importing directly in the src img attribute. Thanks, if you have any doubts about the repo please contact me |
Looks like @jpkleemans is not maintaining this lib. I can confirm this problem still exists. Loader should ignore file if path starts with a forward slash. |
@nxmad I definitely do maintain this library (just did a new release last week), however it is hard for me to find much time for it in my spare time. |
@jpkleemans That's great to hear, thanks for your work. I'm not into plugins development so much. May be not the best solution, but at least it works - #46 |
Fixed in v3.3.0 |
Hello, when I try to use a svg from public path it works in the dev server, but breaks in build.
If I v-bind the image src in the template with the same path, it surprisingly works, even in build
Any thoughts on why i get an error trying to build a simple svg? I'm not even trying to import as a component...
The text was updated successfully, but these errors were encountered: