Closed Kain-90 closed 4 months ago
Now it's finally resolved, The method comes from the https://github.com/crxjs/chrome-extension-tools/issues/609
# index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
# index.tsx
...
import css from './index.css?inline'
...
createRoot(root).render(
<React.StrictMode>
<style type="text/css">{css}</style>
<App />
</React.StrictMode>
)
full process: https://kainhub.com/blog/how-to-use-react-and-tailwindcss-in-chrome-extension-content-scripts
I can already use
tailwindcss
in addition tocontentScript.tsx
, but the same configuration doesn't work for me in contentScript, how do I configure it?similar to https://github.com/guocaoyi/create-chrome-ext/issues/80
btw, I've also already spent a lot of time on stackoverflow and google with no luck.