Open mklueh opened 2 weeks ago
@Timeraa Hi, just thought I'd ping you quickly.
Have you managed to use UnoCSS with your module in the content script as well?
Hey @mklueh,
sorry for the late reply, It seems to work fine for me, see example linked below:
Describe the bug
Hello,
I've seen the new
@wxt/unocss
is out, thank you very much :)However, I cannot get it working with the content script either, but it works within the popup as expected.
Could you manage to get it working in the content script as well?
What is the general approach here, for example if I decide to use other frontend frameworks? Will they all break and lack CSS in the content script?
Reproduction
entrypoints/content/index.ts
modules: [ "@wxt-dev/module-vue", "@wxt-dev/unocss" ],
unocss:{ configOrPath:"./unocss.config.ts"
},
manifest: { host_permissions: [URL_PATTERN],
}
Used Package Manager
yarn
Validations