mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: update lifecycle hooks (#29678)
This commit is contained in:
parent
194ff33975
commit
a88dcff2aa
@ -52,7 +52,8 @@ Hook | Arguments | Description
|
|||||||
`build:manifest` | `manifest` | Called during the manifest build by Vite and webpack. This allows customizing the manifest that Nitro will use to render `<script>` and `<link>` tags in the final HTML.
|
`build:manifest` | `manifest` | Called during the manifest build by Vite and webpack. This allows customizing the manifest that Nitro will use to render `<script>` and `<link>` tags in the final HTML.
|
||||||
`builder:generateApp` | `options` | Called before generating the app.
|
`builder:generateApp` | `options` | Called before generating the app.
|
||||||
`builder:watch` | `event, path` | Called at build time in development when the watcher spots a change to a file or directory in the project.
|
`builder:watch` | `event, path` | Called at build time in development when the watcher spots a change to a file or directory in the project.
|
||||||
`pages:extend` | `pages` | Called after pages routes are resolved.
|
`pages:extend` | `pages` | Called after page routes are scanned from the file system.
|
||||||
|
`pages:resolved` | `pages` | Called after page routes have been augmented with scanned metadata.
|
||||||
`pages:routerOptions` | `{ files: Array<{ path: string, optional?: boolean }> }` | Called when resolving `router.options` files. Later items in the array override earlier ones.
|
`pages:routerOptions` | `{ files: Array<{ path: string, optional?: boolean }> }` | Called when resolving `router.options` files. Later items in the array override earlier ones.
|
||||||
`server:devHandler` | `handler` | Called when the dev middleware is being registered on the Nitro dev server.
|
`server:devHandler` | `handler` | Called when the dev middleware is being registered on the Nitro dev server.
|
||||||
`imports:sources` | `presets` | Called at setup allowing modules to extend sources.
|
`imports:sources` | `presets` | Called at setup allowing modules to extend sources.
|
||||||
|
Loading…
Reference in New Issue
Block a user