Usage with Tailwind? #13
Unanswered
titantwentyone
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Hi! Unfortunately that import wouldn't be transformed, as it's in the Vite config, and thus won't be processed by any Vite plugins (including this one). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the response. That makes sense. Is there another strategy that you think is worth investigating? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. First of all, thanks for the plugin. I am looking to integrate this into my tailwind config so that I can generate images at build time, obtain the
src
and inject this into mytailwind.config.js
before my CSS is compiled. As per this question on Stack Overflow, I have converted my tailwind set up for ES so that I canimport
an image. Myvite.config.js
is:My postcss is:
And my (truncated)
tailwind.config.js
is:The error I am getting is:
I'm not sure it is even possible to achieve what I'm looking to do but I am ever hopeful! I'm very new to Vite and no JS expert so apologies if I am missing something obvious (this is very likely!)!
Beta Was this translation helpful? Give feedback.
All reactions