Last active
March 21, 2022 08:49
-
-
Save panvourtsis/278c97a03fecefa7d6378dc6900ca9fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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