close customFilesWatcher on nuxt::close

This commit is contained in:
Pooya Parsa 2017-05-12 12:57:59 +04:30
parent 5d23dfc49e
commit d98c24b9b9

View File

@ -140,6 +140,10 @@ class Nuxt {
if (this.pagesFilesWatcher) {
this.pagesFilesWatcher.close()
}
/* istanbul ignore if */
if (this.customFilesWatcher) {
this.customFilesWatcher.close()
}
return co(function * () {
yield promises
})