Skip to content

Commit 8678021

Browse files
authored
webDemo - update webpack to v5 (#3976)
1 parent eb35948 commit 8678021

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

webDemo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555
"eslint": "^6.8.0",
5656
"eslint-plugin-react": "7.24.0",
5757
"eslint-plugin-react-hooks": "^4.0.4",
58-
"html-webpack-plugin": "^4.0.0",
58+
"html-webpack-plugin": "^5.0.0",
5959
"metro-react-native-babel-preset": "0.77.0",
6060
"process": "^0.11.10",
6161
"ts-loader": "^9.3.1",
6262
"url-loader": "^4.1.1",
63-
"webpack": "^4.35.2",
64-
"webpack-cli": "^3.3.5",
65-
"webpack-dev-server": "^3.7.2"
63+
"webpack": "^5.0.0",
64+
"webpack-cli": "^5.0.0",
65+
"webpack-dev-server": "^5.2.1"
6666
}
6767
}

webDemo/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports =
9090
extensions: ['.web.js', '.js', '.jsx', '.tsx', '.ts']
9191
},
9292
devServer: {
93-
contentBase: path.resolve(appDirectory, './dist'),
93+
static: path.resolve(appDirectory, './dist'),
9494
compress: true,
9595
port: 9001
9696
},

0 commit comments

Comments
 (0)