Federation on fixed publicPath #832
-
I am trying to use federation on a server that exposes components but has
I created a branch to show the diff, however, it seems that using a static prefix is trying to load from Is that a bug or me doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would recommend to use this approach below . In your host, you can call the set public path method to your local path(with the correct port number) https://webpack.js.org/concepts/module-federation/#offer-a-host-api-to-set-the-publicpath You can also see the working code in this link below. I modified it based on your code. |
Beta Was this translation helpful? Give feedback.
I would recommend to use this approach below . In your host, you can call the set public path method to your local path(with the correct port number)
https://webpack.js.org/concepts/module-federation/#offer-a-host-api-to-set-the-publicpath
You can also see the working code in this link below. I modified it based on your code.
https://github.com/XiaofengXie16/module-federation-example