builder: add devMiddleware watching into this.compilersWatching

This commit is contained in:
Pooya Parsa 2018-02-27 16:37:05 +03:30
parent f880b497b2
commit a65db22701
1 changed files with 2 additions and 0 deletions

View File

@ -627,6 +627,8 @@ module.exports = class Builder {
)
)
this.compilersWatching.push(this.webpackDevMiddleware.watching)
// Inject to renderer instance
if (this.nuxt.renderer) {
this.nuxt.renderer.webpackDevMiddleware = this.webpackDevMiddleware