Stylesheets in Panels

I have this issue where the bundler isn't including a stylesheet I need into the HEAD if it is a panel. Others have the same issue so I know it's not just me. https://github.com/PlasmoHQ/plasmo/issues/1135 As a workaround, I hardcoded in the link to the jsdelivr in my HTML, but I was wondering if there is a way to load the stylesheet inline or whatnot with React (sorry, I'm not very good at all the rules around CSS), because my jsdelivr link needs a version as a part of it to align with the table and I'd rather be pulling it from my build info rather than forgetting to update it and getting a weird subtle break. Issue: Stylesheets don't load in panel Goal: Load stylesheets by either modifying the html during bundling (if possible with a custom hook) or loading it via react/JS/whatever at runtime and having it apply before the page loads. Thanks!
GitHub
[BUG] Plasmo does not load stylesheets for devtools panels · Issue ...
What happened? When using the import command either in uri mode or direct css mode to load a css file, the CSS is bundled to the panel.random.css file but no script link is added to the panel.rando...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server