mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix: loadResources after every build
This commit is contained in:
parent
76aca28cdc
commit
8318ce7510
@ -435,6 +435,9 @@ export default class Builder {
|
|||||||
// Resolve only when compiler emit done event
|
// Resolve only when compiler emit done event
|
||||||
compiler.plugin('done', async (stats) => {
|
compiler.plugin('done', async (stats) => {
|
||||||
await this.nuxt.callHook('build:compiled', { name, compiler, stats })
|
await this.nuxt.callHook('build:compiled', { name, compiler, stats })
|
||||||
|
// Reload renderer if available
|
||||||
|
this.nuxt.renderer.loadResources(sharedFS || fs)
|
||||||
|
// Resolve on next tick
|
||||||
process.nextTick(resolve)
|
process.nextTick(resolve)
|
||||||
})
|
})
|
||||||
// --- Dev Build ---
|
// --- Dev Build ---
|
||||||
@ -475,10 +478,6 @@ export default class Builder {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}))
|
}))
|
||||||
// Reload renderer if available
|
|
||||||
if (this.nuxt.renderer) {
|
|
||||||
this.nuxt.renderer.loadResources(sharedFS || fs)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
webpackDev(compiler) {
|
webpackDev(compiler) {
|
||||||
|
Loading…
Reference in New Issue
Block a user