-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for dev server #128
Comments
Hi, I'll check if it's possible this week. Thank you for opening the issue |
@bytestream Could you give me a sample repository so I can do some testing directly? |
@bytestream so did you get it working in build step & shadow dom - injecting styles to the shadow root? Did you have to do anything special for that? I'm trying to achieve the same thing. |
Good morning @marco-prontera! Did you have the chance to take a look into this? |
Hi @felixpaq, I'm working on it ;) |
Hi the v3.4.0-beta.0 that contains the code to support dev server is live, to use the plugin also in dev mode you need to configure some params: https://github.com/marco-prontera/vite-plugin-css-injected-by-js/tree/v3.4.0-beta.0?tab=readme-ov-file#dev-object Note: If some of you have a solution you can open a PR or share the information. I'd love to hear your feedback, thanks guys! |
@bytestream have you tried? |
@marco-prontera it works a treat 👀 Thanks very much for your efforts! |
Available in v3.4.0, thank you! |
🚀 Feature Request
Is your feature request related to a problem? Please describe.
I would like to append css to the shadow dom - a feature which is currently unsupported by Vite (vitejs/vite#11855). This plugin currently works great on
vibe build
, but does not run at all onvite
(development server). My understanding that this is by design - https://github.com/marco-prontera/vite-plugin-css-injected-by-js/blob/main/src/index.ts#L40.Describe the solution you'd like
vite
command (development server) as well asvite build
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: