This commit is contained in:
2025-08-31 01:33:35 -04:00
parent 01c940ea31
commit d05af3b385
14 changed files with 236 additions and 92 deletions

View File

@ -1,5 +1,6 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { ModuleFederationPlugin } = require('webpack').container;
const { getRemotesConfig } = require('./src/microfrontends.js');
module.exports = {
mode: 'development',
@ -44,11 +45,7 @@ module.exports = {
plugins: [
new ModuleFederationPlugin({
name: 'shell',
remotes: {
demo: 'demo@http://localhost:3001/remoteEntry.js',
kms: 'kms@http://localhost:3002/remoteEntry.js',
faas: 'faas@http://localhost:3003/remoteEntry.js',
},
remotes: getRemotesConfig(),
shared: {
react: {
singleton: true,
@ -86,4 +83,4 @@ module.exports = {
template: './public/index.html',
}),
],
};
};