Merge pull request #2126 from dsandor/dev

Add hook call after route generated.
This commit is contained in:
Sébastien Chopin 2017-11-16 12:28:24 +01:00 committed by GitHub
commit ece3fe84dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.nuxt.callHook('generate:routeCreated', route)
}))
}