-
TailwindCSS Not Watching *.cljs Files in Sibling Directory with GlueStack-UI Description: Setup:
Key Configurations tailwind.config.js:
metro.config.js:
What I Tried:
Issue:
Questions:
Any insights would be greatly appreciated! 🚀 Thanks! 😊 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved! I wanted to share the solution I found for TailwindCSS not applying styles from *.cljs files in a sibling directory while using GlueStack-UI with NativeWind in an Expo app.
content: [
"../src/main/app/**/*.{cljc,cljs}", // Watch ClojureScript files in sibling directory
"components/**/*.{tsx,jsx,ts,js}" // Watch local JS/TSX files
],
import "@/global.css"; // This is critical to initialize Tailwind styles
import "./app/index.js"; // Generated shadow-cljs entry file
Why This Fix Works |
Beta Was this translation helpful? Give feedback.
Solved!
I wanted to share the solution I found for TailwindCSS not applying styles from *.cljs files in a sibling directory while using GlueStack-UI with NativeWind in an Expo app.
Update your tailwind.config.js to include the sibling directory:
In your index.js (or main entry file), make sure to explicitly import global.css: