Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.8k
-
I'm new to webpack, and I searched the web and this forum for examples but none have matched my situation closely enough for me to recognize. I have a working local site built by webpack using Ideally, adding a new project folder in src would automatically create the corresponding output folder. No framework like React is being used, but I plan to look into generic web components later. Based onhttps://medium.com/paloit/a-beginners-guide-to-micro-frontends-with-webpack-module-federation-712f3855f813#b96a I think Module Federation is the best way to achieve this. But I cannot see how that example's mount fn would be used by the host's src/index.js to apply the overrides available in the project folders. And when the example says "Finally, your subA folder should have this structure", the structure looks like the top-level of a webpack project, not a 'subA' folder that would contain just a few override files. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments 2 replies
-
Check our documentation site. Framework bridges are what you want. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you for your response, Zack.Do you mean this documentation?https://module-federation.io/practice/bridge/I'm using pure JS, and I don't see anything relevant to building multiplesites (which do not route to each other) in the same build config. …On Fri, Oct 25, 2024, 9:35 AM Zack Jackson ***@***.***> wrote: Check our documentation site. Framework bridges are what you want. — Reply to this email directly, view it on GitHub <#4028 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKJXV3CD3UAQXM45BQRNINLZ5HRBRAVCNFSM6AAAAABJGIAYZWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBUHA3DSNA> . You are receiving this because you authored the thread.Message ID: <module-federation/module-federation-examples/repo-discussions/4028/comments/11048694 @github.com> |
BetaWas this translation helpful?Give feedback.
All reactions
-
What do you mean pure js? Do you have a repo example of what you want to do? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi Zack,Yes, just plain JS.I don't have a public repo, but imagine src/ contains one folder for eachsite to be built. Each of those folders contains assets like images, css,and json. The build output have corresponding folders containing oneindex.html, all assets now with a content hash in thier filename, and anindex.js that is cloned from one in src/ but now references all its assetsby their content-hashed filename.This is like a bsic webpack tutorial example for a simple site, but takesarbitrarily many folders to create corresponding sites.David …On Sat, Nov 2, 2024, 12:27 AM Zack Jackson ***@***.***> wrote: What do you mean pure js? Like you dont use react or vue etc? just plain JS? Do you have a repo example of what you want to do? — Reply to this email directly, view it on GitHub <#4028 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKJXV3B3XN5UNTGVOX2NUP3Z6P55TAVCNFSM6AAAAABJGIAYZWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJSGY2DIMQ> . You are receiving this because you authored the thread.Message ID: <module-federation/module-federation-examples/repo-discussions/4028/comments/11126442 @github.com> |
BetaWas this translation helpful?Give feedback.
All reactions
-
Dm me on Twitter. Can do zoom call to discuss. |
BetaWas this translation helpful?Give feedback.