mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
docs: remove redundant newlines and indentations (#29190)
This commit is contained in:
parent
781d8c4174
commit
6bc6582930
@ -4,7 +4,6 @@ description: 'Learn how to upgrade to the latest Nuxt version.'
|
|||||||
navigation.icon: i-ph-arrow-circle-up
|
navigation.icon: i-ph-arrow-circle-up
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## Upgrading Nuxt
|
## Upgrading Nuxt
|
||||||
|
|
||||||
### Latest release
|
### Latest release
|
||||||
@ -445,7 +444,7 @@ We have already proactively migrated the public Nuxt modules which we are aware
|
|||||||
|
|
||||||
However, if you are a module author using the `builder:watch` hook and wishing to remain backwards/forwards compatible, you can use the following code to ensure that your code works the same in both Nuxt v3 and Nuxt v4:
|
However, if you are a module author using the `builder:watch` hook and wishing to remain backwards/forwards compatible, you can use the following code to ensure that your code works the same in both Nuxt v3 and Nuxt v4:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
+ import { relative, resolve } from 'node:fs'
|
+ import { relative, resolve } from 'node:fs'
|
||||||
// ...
|
// ...
|
||||||
nuxt.hook('builder:watch', async (event, path) => {
|
nuxt.hook('builder:watch', async (event, path) => {
|
||||||
|
@ -4,7 +4,6 @@ description: Nuxt is configured with sensible defaults to make you productive.
|
|||||||
navigation.icon: i-ph-gear
|
navigation.icon: i-ph-gear
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
By default, Nuxt is configured to cover most use cases. The [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file can override or extend this default configuration.
|
By default, Nuxt is configured to cover most use cases. The [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file can override or extend this default configuration.
|
||||||
|
|
||||||
## Nuxt Configuration
|
## Nuxt Configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user