The Generator class
- Source: generator/generator.js
Hooks
generate:
hooks:
Hook | Arguments | When |
---|---|---|
generate:before |
(generator, generateOptions) | Hook on before generation |
generate:distRemoved |
(generator) | Hook on destination folder cleaned |
generate:distCopied |
(generator) | Hook on copy static and built files |
generate:route |
({ route, setPayload }) | Hook before generating the page, useful for dynamic payload, see #7422 , available for Nuxt 2.13+ |
generate:page |
({ route, path, html }) | Hook to let user update the path & html after generation |
generate:routeCreated |
({ route, path, errors }) | Hook on saving generated page success |
generate:extendRoutes |
(routes) | Hook to let user update the routes to generate |
generate:routeFailed |
({ route, errors }) | Hook on saving generated page failure |
generate:done |
(generator, errors) | Hook on generation finished |
Edit this page on GitHub
Updated at Mon, Aug 19, 2024
Sébastien Chopin
Nazaré da Piedade
Nobu
川音리오
Maciek Palmowski
Nestor Vera
Daniel Roe
Yue Yang
Jeronimas
Clément Ollivier
Alexander Lichter
N3-rd
Adrien Zaganelli
Mag
Stefan Huber
Olga Bulat
Paiva
Florian Reuschel
Savas Vedova
HIJACK
Vinícius Alves
Kareem Dabbeet
Valentín Costa
Ryan Skinner
Alex Hirzel
Ajeet Chaulagain
René Eschke
Nico Devs
Muhammad
Naoki Hamada
Tom
Yann Aufray
Anthony Chu
Nuzhat Minhaz
Lucas Portet
Richard Schloss
Bobby
bpy
Antony Konstantinidis
Hibariya
Jose Seabra
Eze
Florian Lefebvre
Lucas Recoaro
Julien SEIXAS