Open michal-damiecki opened 3 years ago
Same problem
will the css problem be fixed?
During development, you can temporarily enable cssCodeSplit parameter in the vite.config.js
build: {
cssCodeSplit: true
...
}
https://vitejs.dev/config/#build-csscodesplit Your css will be rendered inside js
I tried this configuration and it worked for me !
export default defineConfig({
plugins: [
svelte({
emitCss: false
}),
...
]
});
In the Svelte example,
App.svelte
contains some styling, for example, button styles and so on. Unfortunately, after running build and loading extension, it works fine but it doesn't load styles.As far as I can see styles are not included in the
/dist/popup/index.html
: