-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[workaround] Updates to Tailwind css don't refresh when running dev server #3792
Comments
Hey @edapm thanks for reporting this! @clairefro and I have confirmed this. It's a huge blow to DX. Do you happen to know if it was working ok in v0.37 and that it broke when you upgraded to v0.38? |
I created the project with v0.38 so not sure. |
I know that @burnsy has this working with GitPod, perhaps he can share his insights. |
@edapm I believe I've found a temporary workaround for this. I've confirmed it locally but if you could confirm it as well that'd be great / give me more confidence. In your
|
@jtoar That works for me! |
@jtoar I have set up my project on |
Just ran into this as well and also fixed it with Worth noting as an avenue for debugging that the TW docs on that env flag say that it is a workaround for a failure in the usual flow. Usually the rebuild should be triggered by:
I confirmed that if I downgrade to Tailwind 2.2 and disable JIT, then the correct refresh behavior returns. So it does appear to be an issue with the pipeline from JIT to the build tool via the directory dependency system. |
Based on some of the recent comments in this thread, I've tested hot reloading again and it seems to work like before, without the need for the workaround. If someone who was using the workaround before could confirm that would give me more confidence! |
@jtoar Just tested locally on the latest rw (0.41.0) and tailwind (3.0.9) and can confirm that autorefresh appears to be functioning normally once again when using I think this issue can be closed. |
I have just started a new Redwood project and have added Tailwind. When writing pages, the updates to Tailwind classes do not show when running the dev server. I have to restart the dev server every time I make a change. Not sure if this is a Tailwind problem or a Redwood one.
I am running the project in Gitpod; I experienced the problem in v0.38 and after I upgraded to v0.39.
The text was updated successfully, but these errors were encountered: