Using Images in Local Bundles #533
Unanswered
steventnorris
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen where remote bundles you can set up a local port to serve assets from at runtime through a little dev server and then upload to a CDN for production deploy. But is there a good option for if you want a microfrontend to include the assets locally?
The only two things I could come up with are:
Option 1:
Option 2:
Ex. ImageUtil.get("myModule_greenLogo.png") would hit the ImageUtil pulling from require("../copiedassets/myModule_greenLogo.png"). Scripting at build time would move the assets from the output of the MyModule microfrontend into the copied assets folder.
Beta Was this translation helpful? Give feedback.
All reactions