windicss / vite-plugin-windicss

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

`unocss preset icons` + `windicss` + `nuxt3` : some icons removed from `uno.css` #274

Open userquin opened 2 years ago

userquin commented 2 years ago

Describe the bug see https://github.com/antfu/unocss/issues/560: some icons removed from unocss css asset, it seems only ones containing bit in the class name

Minimal Reproductions https://stackblitz.com/edit/nuxt3-iconify-missing-icon-bug-yyk9oc

Comment out the exclude entry: i-logos-bitcoin and i-logos-bitbucket missing from app.vue.

Versions check https://stackblitz.com/edit/nuxt3-iconify-missing-icon-bug-yyk9oc?file=package.json

Additonal Context Excluding uno.css variants just works:

https://stackblitz.com/edit/nuxt3-iconify-missing-icon-bug-yyk9oc?file=windi.config.ts

On the repro I added the vite-plugin-inspect and so you can open also https://stackblitz.com/edit/nuxt3-iconify-missing-icon-bug-yyk9oc/__inspect to check it is the vite-plugin-windicss:css plugin removing both icons (also tried adding shortcuts for icons but still not working).

userquin commented 2 years ago

https://streamable.com/h7tq0t