mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25: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)
|
||||
}
|
||||
|
||||
await this.applyPluginsAsync('compiled', { builder: this, stats })
|
||||
await this.applyPluginsAsync('done', { builder: this, stats })
|
||||
})
|
||||
|
||||
// Add dev Stuff
|
||||
@ -327,7 +327,7 @@ export default class Builder extends Tapable {
|
||||
await this.applyPluginsAsync('compile', { builder: this, compiler: this.compiler })
|
||||
|
||||
// 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) {
|
||||
// --- Dev Build ---
|
||||
if (compiler.options.name === 'client') {
|
||||
@ -361,6 +361,8 @@ export default class Builder extends Tapable {
|
||||
})
|
||||
}
|
||||
}))
|
||||
|
||||
await this.applyPluginsAsync('compiled', this)
|
||||
}
|
||||
|
||||
webpackDev () {
|
||||
|
Loading…
Reference in New Issue
Block a user