refactor: use hooks in webpack build hook

This commit is contained in:
Clark Du 2018-03-13 10:38:29 +08:00
parent 4bbc8a91f6
commit 061718c66d
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -501,7 +501,7 @@ module.exports = class Builder {
await this.nuxt.callHook('build:compile', { name, compiler })
// Resolve only when compiler emit done event
compiler.plugin('done', async stats => {
compiler.hooks.done.tap('load-resources', async stats => {
await this.nuxt.callHook('build:compiled', {
name,
compiler,