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

View File

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