mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
more webpack friendly tappable hooks
This commit is contained in:
parent
205113dfce
commit
bf1065f438
@ -316,7 +316,7 @@ export default class Builder extends Tapable {
|
|||||||
this.nuxt.renderer.loadResources(sharedFS || fs)
|
this.nuxt.renderer.loadResources(sharedFS || fs)
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.applyPluginsAsync('compiled', { builder: this, stats })
|
await this.applyPluginsAsync('done', { builder: this, stats })
|
||||||
})
|
})
|
||||||
|
|
||||||
// Add dev Stuff
|
// Add dev Stuff
|
||||||
@ -327,7 +327,7 @@ export default class Builder extends Tapable {
|
|||||||
await this.applyPluginsAsync('compile', { builder: this, compiler: this.compiler })
|
await this.applyPluginsAsync('compile', { builder: this, compiler: this.compiler })
|
||||||
|
|
||||||
// Start Builds
|
// Start Builds
|
||||||
return parallel(this.compiler.compilers, compiler => new Promise((resolve, reject) => {
|
await parallel(this.compiler.compilers, compiler => new Promise((resolve, reject) => {
|
||||||
if (this.options.dev) {
|
if (this.options.dev) {
|
||||||
// --- Dev Build ---
|
// --- Dev Build ---
|
||||||
if (compiler.options.name === 'client') {
|
if (compiler.options.name === 'client') {
|
||||||
@ -361,6 +361,8 @@ export default class Builder extends Tapable {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
await this.applyPluginsAsync('compiled', this)
|
||||||
}
|
}
|
||||||
|
|
||||||
webpackDev () {
|
webpackDev () {
|
||||||
|
Loading…
Reference in New Issue
Block a user