Skip to content
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

try it background-image: url("@/assets/login-bg.svg"); add to my less style, vite build is missing it #327

Open
chenxiaofie opened this issue Jul 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chenxiaofie
Copy link

Describe the bug

Minimal Reproductions

Versions

  • "vite-plugin-windicss": "^1.9.3",
  • "vite": "^5.2.0",
  • framework(vue/react/svelte/etc):

Additonal Context

If svg file not have id attribute After vite build missing background-image.
But add id attribute can fixed I don't know why

@chenxiaofie chenxiaofie added the bug Something isn't working label Jul 23, 2024
@chenxiaofie
Copy link
Author

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id='a622e68e-7a65-46e9-94a9-d45sss' width="6395" height="1079" viewBox="0 0 6395 1079"> add id attribute can show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant