mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(builder): graceful unwatch when devMiddleware is not initialized
This commit is contained in:
parent
1f9eed592f
commit
a91e6fa0db
@ -648,7 +648,9 @@ export default class Builder {
|
||||
this.compilersWatching.forEach(watching => watching.close())
|
||||
|
||||
// Stop webpack middleware
|
||||
await this.webpackDevMiddleware.close()
|
||||
if (this.webpackDevMiddleware) {
|
||||
await this.webpackDevMiddleware.close()
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: remove ignore when generateConfig enabled again
|
||||
|
Loading…
Reference in New Issue
Block a user