use the new hooks system instead of a plugin.

This commit is contained in:
David Sandor 2017-11-16 06:04:39 -05:00
parent 9aa6722512
commit 715ff581b9

View File

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