Replies: 1 comment
-
No, as you have seen from the PR, Tailwind now only scans "real" files on the file system. As a work-around, you could consider reviewing safelisting. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been constructing some of tailwind's classes like
bg-[color]
,mr-[number]
, etc. and storing them in a vite virtual module, so that tailwind includes these classes in the bundle. This virtual module is essentially a js file with several string arrays, containing the class names.I also use exports from this module across my project.
The solution worked well until this update #16631 of
@tailwindcss/vite
.Is there a way to explicitly tell tailwind to look into certain virtual modules?
Beta Was this translation helpful? Give feedback.
All reactions