-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
313f194
commit a013e39
Showing
3 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ RUN yarn cache clean | |
# Install dependencies | ||
RUN yarn install | ||
|
||
RUN yarn add @digit-ui/[email protected] | ||
# RUN yarn add @digit-ui/[email protected] | ||
|
||
# Copy the rest of the application | ||
COPY . . | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
const { merge } = require("webpack-merge"); | ||
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin"); | ||
const commonConfig = require("./webpack.common"); | ||
const packageJson = require("./package.json"); | ||
const { merge } = require('webpack-merge'); | ||
const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin'); | ||
const commonConfig = require('./webpack.common'); | ||
const packageJson = require('./package.json'); | ||
|
||
module.exports = () => { | ||
const prodConfig = { | ||
mode: "production", | ||
mode: 'production', | ||
output: { | ||
publicPath: "/hrms-ui/", | ||
filename: "[name].[contenthash].js", | ||
publicPath: '/hrms-ui/', | ||
filename: '[name].[contenthash].js', | ||
}, | ||
plugins: [ | ||
new ModuleFederationPlugin({ | ||
name: "hrms", | ||
filename: "remoteEntry.js", | ||
name: 'hrms', | ||
filename: 'remoteEntry.js', | ||
exposes: { | ||
"./HRMSModule": "./src/SingleSpaEntry", | ||
'./HRMSModule': './src/SingleSpaEntry', | ||
}, | ||
shared: { | ||
'single-spa-react': '^4.6.1', | ||
'react': '17.0.1', | ||
'react-dom': '17.0.1', | ||
'react-router-dom': '5.2.0', | ||
'rxjs': '6.6.3', | ||
'react-hook-form': '6.15.8', | ||
'react-i18next': '11.16.2', | ||
'react-query': '3.6.1', | ||
'rooks': '^4.4.0', | ||
'webpack': '^5.68.0', | ||
'webpack-cli': '^4.9.2', | ||
'webpack-dev-server': '^4.8.1', | ||
'webpack-merge': '5.7.3', | ||
}, | ||
// shared: packageJson.dependencies, //removed the shared logic for now will be enabled later for optimization | ||
}), | ||
], | ||
}; | ||
|
||
return merge(commonConfig, prodConfig); | ||
|
||
} | ||
}; |