Generator Class

Tapable plugins

We can register hooks on certain life cycle events.

nuxt.plugin('generator', generator => {
    generator.plugin('generate', ({routes}) => {
        // ...
Plugin Arguments When
generateRoutes {generator, generateRoutes} After resolving routes to generate so we have change to customize them
generate {generator, routes} Just before start generating routes. routes are decorated with payloads

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!