Add "resourcesLoaded" plugin for Renderer

Provide the ability to modify resources before use.
This commit is contained in:
Smadey 2017-09-06 10:38:56 +08:00 committed by GitHub
parent 251d87914d
commit fd07d1ff38

View File

@ -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()