Skip to content

Instantly share code, notes, and snippets.

@panvourtsis
Last active March 21, 2022 08:49
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/278c97a03fecefa7d6378dc6900ca9fe to your computer and use it in GitHub Desktop.
Save panvourtsis/278c97a03fecefa7d6378dc6900ca9fe to your computer and use it in GitHub Desktop.
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
module.exports = {
entry: "./src/index",
mode: "development",
devServer: {
port: 8081,
},
plugins: [
new ModuleFederationPlugin({
name: "reactexample",
filename: "remoteEntry.js",
exposes: {
"./Widget": "./src/bootstrap",
}
})
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment