How to use single-spa-css in a root-config? #323
Answered
by
joeldenning
PieterBoeren
asked this question in
Q&A
-
I was looking into the single-spa-css solution (I was trying to extract my css with webpacks "MiniCssExtractPlugin"), it all works, but the CSS isn't loaded since a root-config doesn't have the lifecycles to hook in to. Any suggestions on how to extract (and load) my CSS in a root-config? |
Beta Was this translation helpful? Give feedback.
Answered by
joeldenning
Aug 24, 2021
Replies: 1 comment 3 replies
-
In root configs, you can load CSS via |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
PieterBoeren
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In root configs, you can load CSS via
<link rel="stylesheet" href="/file.css">
inside of your index.html file. You don't need to use single-spa-css in root configs since it can control the ordering of loading css files (as the owner of the html file)