mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
Merge 2a2fb2b2b7
into 9bf8465806
This commit is contained in:
commit
f9257d4bfb
@ -629,9 +629,9 @@ These options have been set to their current values for some time and we do not
|
|||||||
|
|
||||||
##### Migration Steps
|
##### Migration Steps
|
||||||
|
|
||||||
* `polyfillVueUseHead` is implementable in user-land with [this plugin](https://github.com/nuxt/nuxt/blob/f209158352b09d1986aa320e29ff36353b91c358/packages/nuxt/src/head/runtime/plugins/vueuse-head-polyfill.ts#L10-L11)
|
* `polyfillVueUseHead` is implementable in user-land with [this plugin](https://github.com/nuxt/nuxt/blob/f209158352b09d1986aa320e29ff36353b91c358/packages/nuxt/src/head/runtime/plugins/vueuse-head-polyfill.ts)
|
||||||
|
|
||||||
* `respectNoSSRHeader`is implementable in user-land with [server middleware](https://github.com/nuxt/nuxt/blob/c660b39447f0d5b8790c0826092638d321cd6821/packages/nuxt/src/core/runtime/nitro/no-ssr.ts#L8-L9)
|
* `respectNoSSRHeader`is implementable in user-land with [server middleware](https://github.com/nuxt/nuxt/blob/c660b39447f0d5b8790c0826092638d321cd6821/packages/nuxt/src/core/runtime/nitro/no-ssr.ts)
|
||||||
|
|
||||||
## Nuxt 2 vs Nuxt 3+
|
## Nuxt 2 vs Nuxt 3+
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
### With webpack
|
### With webpack
|
||||||
|
|
||||||
If you use webpack and need to configure `vue-loader`, you can do this using `webpack.loaders.vue` key inside your `nuxt.config` file. The available options are [defined here](https://github.com/vuejs/vue-loader/blob/main/src/index.ts#L32-L62).
|
If you use webpack and need to configure `vue-loader`, you can do this using `webpack.loaders.vue` key inside your `nuxt.config` file. The available options are [defined here](https://github.com/vuejs/vue-loader/blob/main/src/index.ts#:~:text=export%20interface%20VueLoaderOptions).
|
||||||
|
|
||||||
```ts twoslash [nuxt.config.ts]
|
```ts twoslash [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
@ -43,7 +43,7 @@ const nuxtApp = {
|
|||||||
versions, // an object containing Nuxt and Vue versions
|
versions, // an object containing Nuxt and Vue versions
|
||||||
|
|
||||||
// These let you call and add runtime NuxtApp hooks
|
// These let you call and add runtime NuxtApp hooks
|
||||||
// https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts#L18
|
// https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts#:~:text=export%20interface%20RuntimeNuxtHooks
|
||||||
hooks,
|
hooks,
|
||||||
hook,
|
hook,
|
||||||
callHook,
|
callHook,
|
||||||
|
@ -46,6 +46,6 @@ useSeoMeta({
|
|||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
There are over 100 parameters. See the [full list of parameters in the source code](https://github.com/harlan-zw/zhead/blob/main/packages/zhead/src/metaFlat.ts#L1035).
|
There are over 100 parameters. See the [full list of parameters in the source code](https://github.com/harlan-zw/zhead/blob/main/packages/zhead/src/metaFlat.ts#:~:text=export%20interface%20MetaFlat%20).
|
||||||
|
|
||||||
:read-more{to="/docs/getting-started/seo-meta"}
|
:read-more{to="/docs/getting-started/seo-meta"}
|
||||||
|
@ -7,7 +7,7 @@ description: Nuxt provides a powerful hooking system to expand almost every aspe
|
|||||||
|
|
||||||
## App Hooks (runtime)
|
## App Hooks (runtime)
|
||||||
|
|
||||||
Check the [app source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts#L37) for all available hooks.
|
Check the [app source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts#:~:text=export%20interface%20RuntimeNuxtHooks) for all available hooks.
|
||||||
|
|
||||||
Hook | Arguments | Environment | Description
|
Hook | Arguments | Environment | Description
|
||||||
-----------------------|---------------------|-----------------|-------------
|
-----------------------|---------------------|-----------------|-------------
|
||||||
@ -34,7 +34,7 @@ Hook | Arguments | Environment | Description
|
|||||||
|
|
||||||
## Nuxt Hooks (build time)
|
## Nuxt Hooks (build time)
|
||||||
|
|
||||||
Check the [schema source code](https://github.com/nuxt/nuxt/blob/main/packages/schema/src/types/hooks.ts#L83) for all available hooks.
|
Check the [schema source code](https://github.com/nuxt/nuxt/blob/main/packages/schema/src/types/hooks.ts#:~:text=export%20interface%20NuxtHooks) for all available hooks.
|
||||||
|
|
||||||
Hook | Arguments | Description
|
Hook | Arguments | Description
|
||||||
-------------------------|----------------------------|-------------
|
-------------------------|----------------------------|-------------
|
||||||
|
Loading…
Reference in New Issue
Block a user