Getting Tailwind to work in content scripts
I'm following the instructions from https://docs.plasmo.com/quickstarts/with-tailwindcss, with the exception that I did not
pnpm create plasmo --with-tailwindcss
because my project was already started. However I did all the other stuff.
I think I must be doing the getStyle export wrong? The style is not being injected. any idea what may be going wrong? This is my content script:
contents/my-content-script.tsx
2 Replies
here's a screenshot of that code if it is easier to read with syntax highlighting
Have you whitelisted your files in your tailwind.config?
module.exports ={
content:['./src/*/.{ts,tsx,js,jsx}']
}
^ google that. In phone and it's messing up the correct syntax