Skip to content

Commit

Permalink
updated hrms
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov committed Feb 8, 2024
1 parent f7b5c43 commit d877d68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion micro-ui/web/packages/hrms/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");

module.exports = {
entry: "./src/index",
Expand All @@ -18,5 +19,9 @@ module.exports = {
},
],
},
plugins: [],
plugins: [
new HtmlWebpackPlugin({
template: "./public/index.html",
}),
],
};
8 changes: 4 additions & 4 deletions micro-ui/web/packages/hrms/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ module.exports = () => {
const prodConfig = {
mode: "production",
output: {
publicPath: "/hrms/",
publicPath: "/hrms-ui/",
filename: "[name].[contenthash].js",
},
plugins: [
new ModuleFederationPlugin({
name: "hrms",
name: "hrms-ui",
filename: "remoteEntry.js",
exposes: {
"./HrmsModule": "./src/bootstrap",
},
// shared: packageJson.dependencies, removed the shared logic for now will be enabled later for optimization
shared: packageJson.dependencies, //removed the shared logic for now will be enabled later for optimization
}),
],
};

return merge(commonConfig, prodConfig);
};

0 comments on commit d877d68

Please sign in to comment.