QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.69k stars 1.29k forks source link

[🐞] unocss no work when bun run serve #6691

Closed lontten closed 4 weeks ago

lontten commented 2 months ago

Which component is affected?

Qwik Runtime

Describe the bug

unocss can work when bun run dev, but when bun run serve unocss no work

Reproduction

https://github.com/lontten/d10

Steps to reproduce

bun i bun run build bun run serve

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 8.93 GB / 31.82 GB
  Binaries:
    Node: 20.12.2 - d:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - d:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - d:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.20 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (126.0.2592.102)
    Internet Explorer: 11.0.22621.3527

Additional Information

No response

lontten commented 2 months ago

when serve No request http://localhost:5173/__uno.css No error message printed

shairez commented 2 months ago

Thanks for the report @lontten !

@hypecode-tech we like to keep things friendly in our community, so please edit your message to adhere to our community values, thanks.

wmertens commented 2 months ago

@lontten do you mean that it's not requesting __uno.css? That is expected, it should be part of the global.css file. Vite bundles all css imports into a single file.

lontten commented 2 months ago

no request css file

dev

image

serve

image

lontten commented 4 weeks ago

right way

gioboa commented 4 weeks ago

Thanks for the update 👍