Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: webpack upgraded to new version for removing vulnerability #536

Merged
merged 7 commits into from
Aug 5, 2024
Merged
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
Loading