How to setup Tailwind with Vite? #1560
-
I am writing this because I didn't find it in the docs for VIte. |
Beta Was this translation helpful? Give feedback.
Answered by
predragnikolic
Nov 8, 2023
Replies: 1 comment
-
The anwser is simple. {
"globalImports": ["src/index.css"],
"plugins": ["react-cosmos-plugin-vite"]
} In my case, the @import url("./parts/toasts.css");
@tailwind base;
@tailwind components;
@tailwind utilities; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
predragnikolic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The anwser is simple.
It looks like it is enough just to add
globalImports
tocosmos.config.json
In my case, the
src/index.css
looks like this: