Open TechplexEngineer opened 1 month ago
Hi @TechplexEngineer
I removed support for automatic style injection because of unpredictable behavior and lack of control over styles, so for this purpose there is GM_addStyle, but since we have sfc framework, the use of css modules does not make much sense, I came to the fact that you can use the @resource directive to load styles (but only if you use gh pages as a repository of scripts), for this purpose I reproduced the work in this repository, you may be interested in it.
Thanks for building this
I noticed that previous versions have CSS Inject support. https://github.com/greasify/vite-userscript-plugin/pull/28 I'm attempting to use this plugin with svelte to build a userscript but the component styles are not getting applied.
Any thoughts on how it might be possible to load component styles?
Thanks