Replies: 1 comment 1 reply
-
Same issue with polaris from shopify How do you manually ignore the vanilla.css file? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
4.0.7
What build tool (or framework if it abstracts the build tool) are you using?
I'm using the vite plugin:
@tailwindcss/[email protected]
with react-route@7.Here is an example of the vite config as a reference:
What version of Node.js are you using?
v20.18.3
What browser are you using?
n/a
What operating system are you using?
OS X
Describe your issue
When building the application with
[email protected]
and combining tailwindcss v4.0 with vanilla-extract, the process fails with:My guess is that tailwind plugin reads
vanilla.css
files as valid css, while they are actually javascript files used by thevanilla-extract
plugin.Unsure if this is because there is something wrong with my tailwindcss setup but in v3 we didn't have this issue.
Is it possible to tell the tailwindcss vite plugin to ignore files?
I have try to manually ignore the
vanilla.css
files during the@tailwindcss/vite:generate:serve
step and everything works as expectBeta Was this translation helpful? Give feedback.
All reactions