windicss / vite-plugin-windicss

🍃 Windi CSS for Vite ⚡️
MIT License
853 stars 65 forks source link

Adding a class will override ALL utilities layer #149

Closed imsus closed 3 years ago

imsus commented 3 years ago

Describe the bug I'm just adding 1 class into vue template. But the output override all utilites layer.

https://user-images.githubusercontent.com/1058471/115812806-35961580-a41c-11eb-8f56-e9d6e87d0923.mp4

Minimal Reproductions

  1. Run vite on project root
  2. Try to add 1 class
  3. All other class gone inside utilities layer

vite.config.ts

image

windi.config.ts

image

main.ts

image

Versions

Additonal Context I try to split the virtual:windi.css into virtual:windi-base.css, virtual:windi-components.css, virtual:windi-utilities.css also doesn't work.

antfu commented 3 years ago

Sorry for the regression, should be fixed in 0.15.7. Thanks.

kongmoumou commented 3 years ago

Thanks~, I just met the same bug and the fix works for me. 🎉