Include errors, this is useful in reporting success %

This commit is contained in:
David Sandor 2017-11-16 05:50:14 -05:00
parent 1c4978db4f
commit 9aa6722512

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 })
await this.applyPluginsAsync('generated-route', { generator: this, routes, route, errors })
}))
}