Replies: 2 comments
-
It's not a proper solution, but I came up with a custom plugin. It overwrites the the ssr parameter of the vite:css-post transform function.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
searched in recently you probably need import styles from './my-element.module.scss' or import styles from './my-element.scss**?inline**' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://vitejs.dev/guide/features.html
Importing .css files will inject its content to the page via a <style> tag with HMR support. You can also retrieve the processed CSS as a string as the module's default export.
how do I disable this behaviour? This feature is bad when developing web components.
The styles get inserted into the custom Element, but also inlined in the head.
Beta Was this translation helpful? Give feedback.
All reactions