mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
feat(docs): describe loadNuxtConfig
utility
This commit is contained in:
parent
93b93d9d22
commit
51cc5ca556
@ -159,7 +159,25 @@ async function buildNuxt (nuxt: Nuxt): Promise<any>
|
||||
|
||||
Nuxt instance to build. It can be retrieved from the context via `useNuxt()` call.
|
||||
|
||||
### `loadNuxtConfig(loadOptions)`
|
||||
### `loadNuxtConfig`
|
||||
|
||||
Load Nuxt configuration. It will return the promise with the configuration object.
|
||||
|
||||
#### Type
|
||||
|
||||
```ts
|
||||
async function loadNuxtConfig (opts: LoadNuxtConfigOptions): Promise<NuxtOptions>
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### `opts`
|
||||
|
||||
**Type**: `LoadNuxtConfigOptions`
|
||||
|
||||
**Required**: `true`
|
||||
|
||||
Options to pass in [`c12`](https://github.com/unjs/c12#options) `loadConfig` call.
|
||||
|
||||
## Compatibility
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user