Skip to content

Commit

Permalink
fix: webpack upgraded to new version for removing vulnerability (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Aug 5, 2024
1 parent b7ba842 commit c109c7d
Show file tree
Hide file tree
Showing 5 changed files with 11,690 additions and 14,605 deletions.
9 changes: 5 additions & 4 deletions Hyperswitch-React-Demo-App/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@
"babel-loader": "^9.1.3",
"concurrently": "4.1.2",
"prettier": "^2.7.1",
"webpack-cli": "^4.1.0",
"copy-webpack-plugin": "^11.0.0",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-dev-server": "^3.11.3"
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.93.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
}
}
11 changes: 7 additions & 4 deletions Hyperswitch-React-Demo-App/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");

const devServer = {
contentBase: path.join(__dirname, "dist"),
static: {
directory: path.join(__dirname, "dist"),
},
hot: true,
host: "0.0.0.0",
port: 9060,
historyApiFallback: true,
proxy: {
"/payments": {
proxy: [
{
context: ["/payments"],
target: "http://localhost:5252",
changeOrigin: true,
secure: true,
pathRewrite: { "^/payments": "" },
},
},
],
headers: {
"Cache-Control": "must-revalidate",
},
Expand Down
Loading

0 comments on commit c109c7d

Please sign in to comment.