mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor: use hooks in webpack build hook
This commit is contained in:
parent
4bbc8a91f6
commit
061718c66d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user