Closed gleissonneves closed 8 months ago
Use vite-plugin-css-injected-by-js inject CSS in component
Correction step by step
Install vite-plugin-css-injected-by-js;
In file vite.config.ts
adding:
plugins: [ ... cssInjectedByJsPlugin() ... ]
Thank you for the suggestions, I'll check the PR and try it on.
Case: I am using a component exported from my library, but when using it, the style is not persisted
Example: it turns out that it shows the unstyled component;
When to show style