-
This commit is contained in:
1
faas/web/.gitignore
vendored
Normal file
1
faas/web/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
dist
|
||||
@ -2,6 +2,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const { ModuleFederationPlugin } = require('webpack').container;
|
||||
const webpack = require('webpack');
|
||||
|
||||
// Import the microfrontends registry
|
||||
const { getExposesConfig } = require('../../web/src/microfrontends.js');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: './src/index.tsx',
|
||||
@ -39,9 +42,7 @@ module.exports = {
|
||||
new ModuleFederationPlugin({
|
||||
name: 'faas',
|
||||
filename: 'remoteEntry.js',
|
||||
exposes: {
|
||||
'./App': './src/App.tsx',
|
||||
},
|
||||
exposes: getExposesConfig('faas'),
|
||||
shared: {
|
||||
react: {
|
||||
singleton: true,
|
||||
@ -82,4 +83,4 @@ module.exports = {
|
||||
'process.env': JSON.stringify(process.env),
|
||||
}),
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user