Skip to content

Commit

Permalink
fix: loadResources after every build
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Oct 31, 2017
1 parent 76aca28 commit 8318ce7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ export default class Builder {
// Resolve only when compiler emit done event
compiler.plugin('done', async (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)
})
// --- Dev Build ---
Expand Down Expand Up @@ -475,10 +478,6 @@ export default class Builder {
}
})
}))
// Reload renderer if available
if (this.nuxt.renderer) {
this.nuxt.renderer.loadResources(sharedFS || fs)
}
}

webpackDev(compiler) {
Expand Down

0 comments on commit 8318ce7

Please sign in to comment.