abhijithvijayan / web-extension-starter

🖥🔋Web Extension starter to build "Write Once Run on Any Browser" extension
MIT License
1.97k stars 169 forks source link

How to add CSS Modules into ContentScript? #75

Closed arnaumanyosa closed 2 years ago

arnaumanyosa commented 2 years ago

Sorry if it's not the place, probably it's not an issue, but I don't know where to ask.

I use React with Typescript. In ContentScript I load a custom component which is in source/shared/components/MyComponent/MyComponent.tsx

and I create a Scss for it: source/shared/components/MyComponent/MyComponent.scss

I notice that the styling is added in extension/firefox/css/contentScript.css when it's built, but It's not loaded when I run my browser extension.

It's possible to make it work or only inline CSS can work?

Thank you!

abhijithvijayan commented 2 years ago

resolved?

arnaumanyosa commented 2 years ago

Yes, resolved. I close the issue. Thanks!

nemanjam commented 8 months ago

I also cant load styles for content script, what is the solution?