Hi, there! Given Redwood is using Vite - that comes with an out-of-the-box setup for CSS modules - I'd expected CSS modules to work straight away too.
I'm running into two issues right now:
- CSS module imports aren't recognized by TS (easy fix by adding them to
vite.d.ts)
- For the CSS modules to be properly processed by Vite, I have to add the
'use client' directive to each file - regardless of if they're actual client or server components.
I did find the Tailwind & ShadCN tutorials in the docs, but nothing is mentioned about other more lightweight approaches.
Hi, there! Given Redwood is using Vite - that comes with an out-of-the-box setup for CSS modules - I'd expected CSS modules to work straight away too.
I'm running into two issues right now:
vite.d.ts)'use client'directive to each file - regardless of if they're actual client or server components.I did find the Tailwind & ShadCN tutorials in the docs, but nothing is mentioned about other more lightweight approaches.