Skip to content

differences behavior of ?raw query between production build and development. #2419

@enpitsuLin

Description

@enpitsuLin

UnoCSS version

0.50.6

Describe the bug

see reproduction

it work properly in dev server, 'uno.css' has default export like other style which use ?raw, but also inject style element to document.body

but in production build , in dist/index-f8639261.js#42,the unocss was empty, does it means we shouldn't use ?raw query with unocss (I think this usage can also be considered)

which case is expected?

Reproduction

https://stackblitz.com/edit/vitejs-vite-owozpd

System Info

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions