mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix(webpack): revert pause/resume
This commit is contained in:
parent
c202893b9e
commit
13331a02b4
@ -226,10 +226,6 @@ export default class Builder {
|
|||||||
async generateRoutesAndFiles () {
|
async generateRoutesAndFiles () {
|
||||||
consola.debug('Generating nuxt files')
|
consola.debug('Generating nuxt files')
|
||||||
|
|
||||||
if (this.bundleBuilder) {
|
|
||||||
this.bundleBuilder.pauseWatch()
|
|
||||||
}
|
|
||||||
|
|
||||||
this.plugins = Array.from(await this.normalizePlugins())
|
this.plugins = Array.from(await this.normalizePlugins())
|
||||||
|
|
||||||
const templateContext = this.createTemplateContext()
|
const templateContext = this.createTemplateContext()
|
||||||
@ -249,10 +245,6 @@ export default class Builder {
|
|||||||
|
|
||||||
await this.compileTemplates(templateContext)
|
await this.compileTemplates(templateContext)
|
||||||
|
|
||||||
if (this.bundleBuilder) {
|
|
||||||
this.bundleBuilder.resumeWatch()
|
|
||||||
}
|
|
||||||
|
|
||||||
consola.success('Nuxt files generated')
|
consola.success('Nuxt files generated')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,14 +216,6 @@ export class WebpackBundler {
|
|||||||
await Promise.all(this.compilersWatching.map(watching => watching.close()))
|
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 () {
|
async close () {
|
||||||
if (this.__closed) {
|
if (this.__closed) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user