Replies: 4 comments 2 replies
-
Hi @antfu, I saw your awesome windicss plugin for Vite, which HMR the virtual generated css too, and I've tried to mimic how you did the HMR on the virtual css, but for some reason it not works for me. I'm sorry to bother you, but would you please tell me how to accomplish the above goal if you have time..? Thanks!!🙏🏼 |
Beta Was this translation helpful? Give feedback.
-
Anyone had success with this? |
Beta Was this translation helpful? Give feedback.
-
You might need to read Vite's code to learn the HMR internals. Here is how UnoCSS does it: |
Beta Was this translation helpful? Give feedback.
-
I find that if you modify .vue files won't make css hot update, because it seems that hot update for .vue and .css are dispart. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have such a use case:
I've got this code which injects the purged css at the startup of Vite, but it won't get any hot update after modified the vue files.
Anyone can help me complete my code? Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions