Skip to content

Commit 9b107e2

Browse files
Update webpack
1 parent d3de330 commit 9b107e2

File tree

3 files changed

+679
-1575
lines changed

3 files changed

+679
-1575
lines changed

config/webpack.dev.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,21 @@ module.exports = {
3838
},
3939

4040
devServer: {
41-
contentBase: root,
41+
static: './',
4242
historyApiFallback: true,
4343
port: 3001,
44-
proxy: {
45-
'/api': {
46-
target: `${protocol}${host}`,
47-
secure: false
48-
},
49-
'/pictures': {
44+
proxy: [
45+
{
46+
context: ['/api', '/pictures', '/webmks'],
5047
target: `${protocol}${host}`,
51-
secure: false
48+
secure: false,
5249
},
53-
'/ws': {
50+
{
51+
context: ['/ws'],
5452
target: `ws://${host}`,
55-
ws: true
56-
},
57-
'/webmks': {
58-
target: `${protocol}${host}`,
59-
secure: false
53+
ws: true,
6054
}
61-
}
55+
]
6256
},
6357

6458
// Output source maps suitable for development

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@
125125
"sinon-chai": "~3.5.0",
126126
"style-loader": "~2.0.0",
127127
"url-loader": "~4.1.1",
128-
"webpack": "~5.94.0",
129-
"webpack-cli": "~4.10.0",
130-
"webpack-dev-server": "~3.11.3",
131-
"webpack-stats-plugin": "~1.0.2"
128+
"webpack": "~5.99.9",
129+
"webpack-cli": "~6.0.1",
130+
"webpack-dev-server": "~5.2.2",
131+
"webpack-stats-plugin": "~1.1.3"
132132
},
133133
"browserslist": [
134134
"last 2 versions",

0 commit comments

Comments
 (0)