Am I importing Tailwind correctly? Or is this a bug? #238
-
Checkout this example repo: https://github.com/evanb2/extend-chrome-bug-repro I'm noticing my content-script CSS is somehow bleeding out/clashing with the external page. The only reason I'm not sure if this is something of my own doing or a bug with this plugin is that it only happens for production builds. But my first thought was that this is because Tailwind is probably doing a bunch of resets on HTML elements. If you run Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Ok this seems to be an issue with the Tailwind base reset ("preflight") not being scoped to the extension. Still curious why it doesn't happen in |
Beta Was this translation helpful? Give feedback.
-
Tailwind setup LGTM. When RPCE builds the content script, it takes imported CSS assets and adds it to the manifest, which causes the scoping problem. There should be a way around this, I'll look into it. |
Beta Was this translation helpful? Give feedback.
Tailwind setup LGTM. When RPCE builds the content script, it takes imported CSS assets and adds it to the manifest, which causes the scoping problem. There should be a way around this, I'll look into it.