more webpack friendly tappable hooks

This commit is contained in:
Pooya Parsa 2017-07-03 15:58:10 +04:30
parent 205113dfce
commit bf1065f438

View File

@ -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 () {