TailwindCSS 4 and using resources from Gems #456
Closed
mariochavez
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for asking this question. Please see the ongoing conversation at #355 which I think encompasses the issue you're describing above. If I've misunderstood, please reply here and I'm happy to reopen this discussion! |
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
-
I am not sure if I'm missing something here, but I could not find a way to reference CSS from a Gem or to tell TailwindCSS to inspect views or helpers from a Gem too.
Currently, I'm using v4, and I want to be able to do something like this:
This is not possible currently, but my simple solution was to create a custom watch rake task that can evaluate the
application.tailwind.css
file as an ERB file to resolve the Gem paths just before it is processed by Tailwind's CLI. Note: Also, the build task needs to be modified.I'm not sure if this is the way to go, but this is the first solution that worked for me right now.
Beta Was this translation helpful? Give feedback.
All reactions