Host does not load remote css when cssCodeSplit is set to true on remote on vite-plugin-federation project #189
Unanswered
danielmariz-hotmart
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm following the react-vite example while trying to set up a demo project here and I've noticed that when the cssCodeSplit is false on remote it will bundle all global css under the button component one and this breaks the global css on the host project so I tried to set the cssCodeSplit to true on the vite bundle config which worked as expected and split the css generating a single css bundle for the button on the dist assets folder, though when I'm loading the button component on the host project it does not inject the css bundle file. Does anyone knows how to make this work?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions