-
Notifications
You must be signed in to change notification settings - Fork 5
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
Empty spritemap file #63
Comments
Weird because I didn't have any issue with my test demo folder. Even by fetching the package from npm. Can you provide a reproduction ? |
I figured this out. For me, I had to pass the glob as an array; so
|
@haleyngonadi Weird, I didn't touch this part + I tried with a glob string and didn't have any issue 🤔 |
@Applelo Maybe it is related to how our projects are setup? I downloaded the repo, and it worked fine as is, but not in my project, so weird! |
@haleyngonadi Can you share a reproduction ? Or any clue (type of project...) to help me to reproduce the issue ? |
@Applelo My project is a Laravel project. I think because my directories are deeply nested, the glob pattern was not working as expected! |
Had the same/similar issue. import path from "path";
VitePluginSvgSpritemap(path.resolve(__dirname, "./public/assets/*.svg"), {...} Project is an almost clean install of react 19.0.0 using typescript. Adding package.json, tsconfig and package.json for reference |
I tried with a vanilla react template from ViteJS with your vite config, no problem for me. Does this happen on dev, build or both ? |
Linux
node - For me it's not really a problem. I tried the Will be working with it next days, so will try with different 'paths |
I tried both |
@Santana1053 Windows does it differently :D |
After updating to v3.0.0, my spritemap file only contains an empty svg tag.
<svg xmlns="http://www.w3.org/2000/svg"/>
I assume this is somehow related to the svgo changes.
The text was updated successfully, but these errors were encountered: