-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Using @tailwindcss/vite
breaks updates on imported CSS
#17339
Comments
@tailwindcss/vite
breaks CSS HMR@tailwindcss/vite
breaks CSS serving
@tailwindcss/vite
breaks CSS serving@tailwindcss/vite
breaks imported CSS changes
@tailwindcss/vite
breaks imported CSS changes@tailwindcss/vite
breaks updates on imported CSS
Hey! Thanks for the bug report, was able to confirm this and merged a fix into |
Hey, appreciate a fast fix |
Hey! Good question especially since 4.0.7 made these two much closer in-line. The biggest reason is that Vite can be used without PostCSS at all (using the |
What version of Tailwind CSS are you using?
v4.0.15 (latest)
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.2.2 (latest)
Reproduction URL
https://codesandbox.io/p/devbox/x3r86q
Describe your issue
Initial setup:
Steps to reproduce:
index.html
(may be a change to JS/JSX files too)imported.css
index.html
orindex.css
is made, or until the server is restarted. Page refresh doesn't serve the latest CSS either.CSS changes work fine without
@import "tailwindcss"
. It also works when using@tailwindcss/postcss
instead of the Vite plugin.Might be related
#16764
The text was updated successfully, but these errors were encountered: