Tailwind not working in remix 1.17.1 #6631
-
I have problem with tailwind , ![]() How to fix it ? thank's this is sample code repository |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
CC/ @markdalgleish |
Beta Was this translation helpful? Give feedback.
-
The issue is with the Change export const links: LinksFunction = () => [
...(cssBundleHref
? [
{ rel: "stylesheet", href: cssBundleHref },
{ rel: "stylesheet", href: styles },
]
: []),
]; to this export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }]; |
Beta Was this translation helpful? Give feedback.
-
Can someone give me a hand and explain why it is not working correctly with any method used? |
Beta Was this translation helpful? Give feedback.
-
Still not working on clear setup. I think, it's something with postcss, it doesn't process at all ![]() ![]() ![]() |
Beta Was this translation helpful? Give feedback.
The issue is with the
links
export in root.tsx. If you don't have a CSS bundle, the ternary will always return[]
, so it doesn't include the tailwind styles. Remix is building the CSS file just fine. You can look in /public/build/_assets.Change
links
fromto this