mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
Add "resourcesLoaded" plugin for Renderer
Provide the ability to modify resources before use.
This commit is contained in:
parent
251d87914d
commit
fd07d1ff38
@ -108,6 +108,9 @@ export default class Renderer extends Tapable {
|
|||||||
this.resources.loadingHTML = ''
|
this.resources.loadingHTML = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Call resourcesLoaded plugin
|
||||||
|
await this.applyPluginsAsync('resourcesLoaded', this.resources)
|
||||||
|
|
||||||
if (updated.length > 0) {
|
if (updated.length > 0) {
|
||||||
// debug('Updated', updated.join(', '), isServer)
|
// debug('Updated', updated.join(', '), isServer)
|
||||||
this.createRenderer()
|
this.createRenderer()
|
||||||
|
Loading…
Reference in New Issue
Block a user