Closed deRaaf closed 6 months ago
Hi There, I would suggest to check the vite demo project link
as I can see that you have a slightly different setup. If you need further help it would be better if you could provide a stackblitz demo of the issue Thanks
Hi,
I based my implementation on the demo, I only needed a different name for my output. Could the issue be that I use components from an extermal repository?
I could share a simplified setup but the external repo is private so I can't share my full implementation sadly.
I based my implementation on the demo, I only needed a different name for my output. Could the issue be that I use components from an extermal repository?
This unlikely to happen.
If you could share a simplified version which reproduces the issue, I would be happy to assist
@deRaaf Just had a similar issue. Checked the vite demo project and found that it is working perfectly.
Then compared my config to the demo and saw that dev-packages were missing.
After adding postcss with postcss.config.js (hat to rename it to .cjs) and autoprefixer all style-blocks were working again as expected.
Hope this helps!
@WulfP hmm... you claim that the plugin must have the postcss.config file ?
I created a web component from a wrapper component with several child components, when I import the component before building it has it's style complete:
But after building the style block is empty:
My setup is a s follows:
component.js
App.vue
vite.config.js
Let me know if you need additional info.