fix(webpack): revert pause/resume

This commit is contained in:
Pooya Parsa 2019-09-26 14:13:43 +02:00
parent c202893b9e
commit 13331a02b4
2 changed files with 0 additions and 16 deletions

View File

@ -226,10 +226,6 @@ export default class Builder {
async generateRoutesAndFiles () {
consola.debug('Generating nuxt files')
if (this.bundleBuilder) {
this.bundleBuilder.pauseWatch()
}
this.plugins = Array.from(await this.normalizePlugins())
const templateContext = this.createTemplateContext()
@ -249,10 +245,6 @@ export default class Builder {
await this.compileTemplates(templateContext)
if (this.bundleBuilder) {
this.bundleBuilder.resumeWatch()
}
consola.success('Nuxt files generated')
}

View File

@ -216,14 +216,6 @@ export class WebpackBundler {
await Promise.all(this.compilersWatching.map(watching => watching.close()))
}
pauseWatch () {
this.compilersWatching.forEach(watching => watching.suspend())
}
resumeWatch () {
this.compilersWatching.forEach(watching => watching.resume())
}
async close () {
if (this.__closed) {
return