mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
docs: remove deprecated loadNuxt
options (#24201)
This commit is contained in:
parent
677a144d96
commit
0c04dc094a
@ -22,8 +22,6 @@ async function loadNuxt (loadOptions?: LoadNuxtOptions): Promise<Nuxt>
|
|||||||
interface LoadNuxtOptions extends LoadNuxtConfigOptions {
|
interface LoadNuxtOptions extends LoadNuxtConfigOptions {
|
||||||
dev?: boolean
|
dev?: boolean
|
||||||
ready?: boolean
|
ready?: boolean
|
||||||
rootDir?: string
|
|
||||||
config?: LoadNuxtConfigOptions['overrides']
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -53,26 +51,6 @@ Loading conditions for Nuxt. `loadNuxt` uses [`c12`](https://github.com/unjs/c12
|
|||||||
|
|
||||||
If set to `true`, Nuxt will be ready to use after the `loadNuxt` call. If set to `false`, you will need to call `nuxt.ready()` to make sure Nuxt is ready to use.
|
If set to `true`, Nuxt will be ready to use after the `loadNuxt` call. If set to `false`, you will need to call `nuxt.ready()` to make sure Nuxt is ready to use.
|
||||||
|
|
||||||
- `rootDir` (optional)
|
|
||||||
|
|
||||||
**Type**: `string`
|
|
||||||
|
|
||||||
**Default**: `null`
|
|
||||||
|
|
||||||
**Deprecated**: Use `cwd` option instead.
|
|
||||||
|
|
||||||
The root directory of the Nuxt project.
|
|
||||||
|
|
||||||
- `config` (optional)
|
|
||||||
|
|
||||||
**Type**: `LoadNuxtConfigOptions['overrides']`
|
|
||||||
|
|
||||||
**Default**: `{}`
|
|
||||||
|
|
||||||
**Deprecated**: Use `overrides` option instead.
|
|
||||||
|
|
||||||
Overrides for the Nuxt configuration.
|
|
||||||
|
|
||||||
## `buildNuxt`
|
## `buildNuxt`
|
||||||
|
|
||||||
Build Nuxt programmatically. It will invoke the builder (currently [@nuxt/vite-builder](https://github.com/nuxt/nuxt/tree/main/packages/vite) or [@nuxt/webpack-builder](https://github.com/nuxt/nuxt/tree/main/packages/webpack)) to bundle the application.
|
Build Nuxt programmatically. It will invoke the builder (currently [@nuxt/vite-builder](https://github.com/nuxt/nuxt/tree/main/packages/vite) or [@nuxt/webpack-builder](https://github.com/nuxt/nuxt/tree/main/packages/webpack)) to bundle the application.
|
||||||
|
Loading…
Reference in New Issue
Block a user