-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Bug]: filewatcher creates dead css files with tailwind #735
Comments
UPDATE: Some of this might be intended behavior as a result of the Just In Time compiler
That is from v2 docs, but i assume carries over to v3 now that it's JIT all the time. I too noticed this last week in a remix project. I did some troubleshooting and here's what I've noticed. The "dead" tailwind files only get created for new classNames added. It also appears that each new "dead" file is a merge of the ones before it. I created a repo to demo - https://github.com/babycourageous/remix-tailwind-compiled-styles-bug
This repo uses the most up to date Remix, TW, PostCSS but i did observe it with Tailwind 2.x and PostCSS 9.0.2
Hope this info helps ! |
https://github.com/remix-run/remix/tree/dev/examples/tailwindcss There was no edit in this sample repo . @babycourageous Have you tried before? |
Fixed by #5223 |
What version of Remix are you using?
1.0.6
Steps to Reproduce
npx create-remix@latest
npm run dev
routes/index.tsx
e.g.className="py-4"
and saveNot confirmed:
This also happens to js files in public/build/*.
Expected Behavior
I expect Remix creates only one css file for
index.tsx
inbuild/_assets/*
or cleanup old files.Actual Behavior
On every change Tailwind is made in
tailwind.css
when a new class is added, Remix creates a new css file inbuild/_assets/*
. This ends up in a lot of dead css files.The text was updated successfully, but these errors were encountered: