fix: increase webpack dev timeouts

This commit is contained in:
Pooya Parsa 2017-09-12 01:05:09 +04:30
parent b41fcbc789
commit 19a943d44c
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ export default class Builder extends Tapable {
this.webpackHotMiddleware = pify(webpackHotMiddleware(this.compiler.client, Object.assign({
log: false,
heartbeat: 1000
heartbeat: 10000
}, this.options.build.hotMiddleware)))
// Inject to renderer instance

View File

@ -152,7 +152,7 @@ export default function webpackClientConfig () {
// Add HMR support
config.entry.app = [
// https://github.com/glenjamin/webpack-hot-middleware#config
`webpack-hot-middleware/client?name=client&reload=true&timeout=3000&path=${this.options.router.base}/__webpack_hmr`.replace(/\/\//g, '/'),
`webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=${this.options.router.base}/__webpack_hmr`.replace(/\/\//g, '/'),
config.entry.app
]
config.plugins.push(