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 + Tailwind JIT -> broken HMR #4147
Comments
Yes, I can gladly test it! |
|
@jods4 vite@2.4.1 has been released, so you can directly test this by updating to it |
ah thanks, fitting. |
@patak-js not quite fixed. |
@OneNail would you take a look at this one? |
😣 |
@jods4 I'll close this one, please open a new issue with the reproduction. Thanks! |
See #4150. I was lucky, the 1st thing I tried to bring in triggered the issue. |
Describe the bug
When I add Tailwind (JIT mode) to my PostCSS config, HMR doesn't kick-in for Vue templates anymore.
Reproduction
Without
tailwindcss
in my.postcssrc.json
:Notice the hmr update
home.vue
appearing in terminal (and it works in browser).Now let's add Tailwind to
.postcssrc.json
:Note that I'm using JIT mode, in
tailwind.config.js
:Restart, it works. Let's try hmr again:
As you can see, only
index.css
was HMR.This is semi-expected as Tailwind JIT watches template changes and dynamically create required styles (although I did not create any new style in this edit -- but it could be the case).
The
home.vue
template HMR is nowhere to be seen, though; it didn't update in browser, of course.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: