React with TailwindCSS #17654
-
Does anyone know how can I load the TailwindCSS from the testing files? I've tried to use the same approach I used on VueJS, importing the css file, but it does just not load the styles. Here's the commit where I added the cypress component testing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
in mount there are options you can pass, one of theme is stylesheet, for example
|
Beta Was this translation helpful? Give feedback.
-
Tailwind is getting loaded, but it's not being transpiled. You need to pass in your |
Beta Was this translation helpful? Give feedback.
Tailwind is getting loaded, but it's not being transpiled.
You need to pass in your
craco
config. See our craco example here https://github.com/cypress-io/cypress/blob/bcefdaba6d6fc9705eeb5aef8b2711379bbb72b6/npm/react/examples/craco/cypress/plugins/index.js#L1-L9