-
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
[4.1.1] Tailwindcss v4.1.x too slower,twenty times slower than 4.0.x #17522
Comments
Same here. When using Tailwindcss 4.1.X with Vite the HMR time is increased from ~100ms to ~1.5s on my machine. |
Might be fixed by #17511 |
maybe ,i just use this code fix it right now @import 'tailwindcss' source(none);
@source '../'; @MGRatEJOT hi, use it improve tailwindcss speed |
Thanks! Discovered this issue since I was initially looking at Next.js and/or Turbopack compilation issues (see vercel/next.js#77624). Turns out it was indeed Tailwind CSS v4 (for me). The context is a Turborepo monorepo with Next.js FixBefore@import 'tailwindcss';
@source './../components/**/*.{ts,tsx}';
@source './../../../**/apps/{data,web}/**/*.{ts,tsx}'; After@import 'tailwindcss' source(none);
@source '../components';
@source '../../../../apps/data';
@source '../../../../apps/web'; |
Hey folks! Do you mind running the dev server with the |
Sure thing. Before (very slow compilation)
After (so when it works fine, with the fix as described at #17522 (comment)
My setup: Using Tailwind CSS
|
https://github.com/zyycn/tailwindcss-v4.1.x-speed hi , use this repository,here is debug info. |
@leeuwd I can confirm your fix works for me. Compilation times went from 10-20 seconds to ~300ms. I'm using Next.js 15.2.4 with Turbopack. |
Hey! This should be fixed by #17511 and will be available in the next release (later today). |
What version of Tailwind CSS are you using?
v4.1.x
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.2.4
What version of Node.js are you using?
v22.14.0
What browser are you using?
Chrome,
What operating system are you using?
Windows
Reproduction URL
https://github.com/zyycn/tailwindcss-v4.1.x-speed
Describe your issue
Tailwindcss v4.1.x ,hot update in 4.0.x is between 100ms-200ms,but in 4.1.x is 2.3s-3s !
The text was updated successfully, but these errors were encountered: