I am currently working on multiple micro SPAs that exist independently within an Express environment. I am facing a challenge with importing a global CSS file that is located outside of the apps, as it is not being recognized.
The use of @import url(assets/global.css)
is proving to be ineffective, possibly due to the fact that the CSS file is situated outside of the app "ecosystem".
I do not want to resort to adding a
<link rel="stylesheet" href="assets/global.css"/>
tag to each index.html
, as I aim for the global.css
to be bundled together with each app's unique CSS in the built files.
Is there a more efficient way to create and import a global file that can be shared across multiple apps? Would converting it into its own node module and referencing it in such a manner be necessary? This approach seems somewhat complicated.