mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
Add tappable plugin call after route generated.
This commit is contained in:
parent
de2b0a6d56
commit
1c4978db4f
@ -67,6 +67,7 @@ export default class Generator {
|
||||
await Promise.all(routes.splice(0, this.options.generate.concurrency).map(async ({ route, payload }) => {
|
||||
await waitFor(n++ * this.options.generate.interval)
|
||||
await this.generateRoute({ route, payload, errors })
|
||||
await this.applyPluginsAsync('generated-route', { generator: this, routes, route })
|
||||
}))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user