Skip to content

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

@chenxiaofie

Description

@chenxiaofie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions