Skip to content

Using --at-apply syntax in a project built by vite, setting backgroundImage does not work #1919

@TRIS-H

Description

@TRIS-H

Describe the bug

Using --at-apply syntax in a project built by vite, setting backgroundImage does not work

Link to the blitz that caused the error

https://stackblitz.com/edit/unocss-unocss-ihyjdw3x?file=package.json,src%2FApp.vue,uno.config.ts

Steps to reproduce

Using --at-apply syntax in a project built by vite, setting backgroundImage does not work

Expected behavior

Using --at-apply syntax in a project built by vite, setting backgroundImage does not work

Parity with Local

Screenshots

Image

Platform

Browser name  = Chrome
Full version  = 137.0.0.0
Major version = 137
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 147137330,
  "usedJSHeapSize": 134889286,
  "jsHeapSizeLimit": 4294705152
}
Hash = cb7c0bca

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions