How to configure @tailwindcss/vite with tailwind.config.js? #531
Closed
leenyburger
started this conversation in
General
Replies: 1 comment
-
Turns out this is because installing tailwind with vite installed Tailwind 4, which no longer uses a tailwind.config.js file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you configure tailwind when installed via vite?
Main issue ->
tailwind.config.js
is not being picked upI started a new project following this tutorial -> https://evilmartians.com/chronicles/inertiajs-in-rails-a-new-era-of-effortless-integration
I installed tailwind using vite, and tailwind works fine.
However, it ignores the
tailwind.config.js
vite.config.ts
In the root directory I also have a
tailwind.config.js
which is not being picked up.tailwind.config.js
I don't have any of the postcss stuff, I added it to try but it didn't make a difference so I removed it.
Beta Was this translation helpful? Give feedback.
All reactions