Skip to content

Instantly share code, notes, and snippets.

@panvourtsis
Last active March 21, 2022 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panvourtsis/798373c2fe4ab96cf41e18913725d482 to your computer and use it in GitHub Desktop.
Save panvourtsis/798373c2fe4ab96cf41e18913725d482 to your computer and use it in GitHub Desktop.
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
module.exports = {
mode: "development",
devServer: {
port: 8080,
},
plugins: [
new ModuleFederationPlugin({
name: "container",
remotes: {
reactexample: 'reactexample@http://localhost:8081/remoteEntry.js'
}
})
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment