mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-30 00:55:20 +01:00
Merge pull request #3260 from h3poteto/fix/dev-server-deprecation
Fix deprecation warning in dev-runner for webpack-dev-server
This commit is contained in:
commit
1a55578054
@ -68,17 +68,19 @@ function startRenderer() {
|
||||
static: {
|
||||
directory: path.resolve(__dirname, '../')
|
||||
},
|
||||
onBeforeSetupMiddleware: function (devServer) {
|
||||
devServer.app.use(hotMiddleware)
|
||||
setupMiddlewares: function (middlewares, devServer) {
|
||||
middlewares.unshift(hotMiddleware)
|
||||
devServer.middleware.waitUntilValid(() => {
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
return middlewares
|
||||
},
|
||||
port: 9080
|
||||
},
|
||||
compiler
|
||||
)
|
||||
|
||||
server.listen(9080)
|
||||
server.start()
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user