Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite Plugin Not Loading New Classes on HMR #885

Open
RaghavBhat02 opened this issue Jan 12, 2023 · 1 comment
Open

Vite Plugin Not Loading New Classes on HMR #885

RaghavBhat02 opened this issue Jan 12, 2023 · 1 comment

Comments

@RaghavBhat02
Copy link

Every time I make add a class, I have to restart my whole dev server in order to see the change. I've added a stackblitz of my project and a github repo. If you navigate to src/components/header/header.tsx, you will see that I was testing windi classes in my component. As I make changes, specifically I find it easy to test using classes that change the text color, you will see that it does not change in hmr. Only when I restart the whole dev server, does it work.

Here's a stackblitz of my project:
https://stackblitz.com/edit/github-zwu2tc?file=src/components/header/header.tsx
https://github.com/RaghavBhat02/vite-windi-hmr-not-working.git

@RaghavBhat02
Copy link
Author

I added devtools but it still won't work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant