Browse Source

Fix webpack deprecation warnings in the dev-runner (#2282)

efb4f5ff-1298-471a-8973-3d47447115dc-patch-2
absidue 2 months ago
committed by GitHub
parent
commit
7287e0011e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      _scripts/dev-runner.js

6
_scripts/dev-runner.js

@ -115,7 +115,7 @@ function startRenderer(callback) {
console.log(`\nWatching file changes for ${name} script...`)
})
const server = new WebpackDevServer(compiler, {
const server = new WebpackDevServer({
static: {
directory: path.join(process.cwd(), 'static'),
watch: {
@ -126,9 +126,9 @@ function startRenderer(callback) {
}
},
port
})
}, compiler)
server.listen(port, '', err => {
server.startCallback(err => {
if (err) console.error(err)
callback()

Loading…
Cancel
Save