mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +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 })
|
await this.nuxt.callHook('build:compile', { name, compiler })
|
||||||
|
|
||||||
// Resolve only when compiler emit done event
|
// 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', {
|
await this.nuxt.callHook('build:compiled', {
|
||||||
name,
|
name,
|
||||||
compiler,
|
compiler,
|
||||||
|
Loading…
Reference in New Issue
Block a user