Skip to content

Commit bdcc7a2

Browse files
authored
Update webpack packages (#5527)
Signed-off-by: khanhtc1202 <[email protected]>
1 parent 23fcd17 commit bdcc7a2

File tree

3 files changed

+377
-198
lines changed

3 files changed

+377
-198
lines changed

web/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"ts-loader": "^9.1.0",
5656
"typescript": "^4.3.2",
5757
"webpack": "^5.94.0",
58-
"webpack-cli": "^4.9.1",
59-
"webpack-dev-server": "^4.11.1",
58+
"webpack-cli": "^6.0.0",
59+
"webpack-dev-server": "^v5.2.0",
6060
"webpack-merge": "^5.7.3"
6161
},
6262
"dependencies": {

web/webpack.config.dev.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ module.exports = (env) =>
2929
port: 9090,
3030
historyApiFallback: true,
3131
allowedHosts: "all",
32-
proxy: {
33-
"/api": {
32+
proxy: [
33+
{
34+
context: ["/api"],
3435
changeOrigin: true,
3536
target: process.env.API_ENDPOINT,
3637
pathRewrite: { "^/api": "" },
@@ -39,7 +40,7 @@ module.exports = (env) =>
3940
Cookie: process.env.API_COOKIE,
4041
},
4142
},
42-
},
43+
],
4344
},
4445
module: {
4546
rules: [

0 commit comments

Comments
 (0)