mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
Merge pull request #2126 from dsandor/dev
Add hook call after route generated.
This commit is contained in:
commit
ece3fe84dc
@ -67,6 +67,7 @@ export default class Generator {
|
|||||||
await Promise.all(routes.splice(0, this.options.generate.concurrency).map(async ({ route, payload }) => {
|
await Promise.all(routes.splice(0, this.options.generate.concurrency).map(async ({ route, payload }) => {
|
||||||
await waitFor(n++ * this.options.generate.interval)
|
await waitFor(n++ * this.options.generate.interval)
|
||||||
await this.generateRoute({ route, payload, errors })
|
await this.generateRoute({ route, payload, errors })
|
||||||
|
await this.nuxt.callHook('generate:routeCreated', route)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user