refactor(docs): add heading to each utility

This commit is contained in:
Andrey Yolkin 2023-09-03 19:42:57 +03:00
parent f38e51daf4
commit 1bc2e22552
No known key found for this signature in database
GPG Key ID: 4A2899263001EA49
1 changed files with 24 additions and 14 deletions

View File

@ -2027,35 +2027,45 @@ export default defineNuxtModule({
[source code](https://github.com/nuxt/nuxt/blob/main/packages/kit/src/nitro.ts)
- `addServerHandler (handler)`
- `addDevServerHandler (handler)`
- `useNitro()` (only usable after `ready` hook)
- `addServerPlugin`
- `addPrerenderRoutes`
### `addServerHandler (handler)`
### `addDevServerHandler (handler)`
### `useNitro()` (only usable after `ready` hook)
### `addServerPlugin`
### `addPrerenderRoutes`
## Resolving
[source code](https://github.com/nuxt/nuxt/blob/main/packages/kit/src/resolve.ts)
- `resolvePath (path, resolveOptions?)`
- `resolveAlias (path, aliases?)`
- `findPath (paths, resolveOptions?)`
- `createResolver (base)`
### `resolvePath (path, resolveOptions?)`
### `resolveAlias (path, aliases?)`
### `findPath (paths, resolveOptions?)`
### `createResolver (base)`
## Logging
[source code](https://github.com/nuxt/nuxt/blob/main/packages/kit/src/logger.ts)
- `useLogger(scope?)`
### `useLogger(scope?)`
## Builder
[source code](https://github.com/nuxt/nuxt/blob/main/packages/kit/src/build.ts)
- `extendWebpackConfig(callback, options?)`
- `extendViteConfig(callback, options?)`
- `addWebpackPlugin(webpackPlugin, options?)`
- `addVitePlugin(vitePlugin, options?)`
### `extendWebpackConfig(callback, options?)`
### `extendViteConfig(callback, options?)`
### `addWebpackPlugin(webpackPlugin, options?)`
### `addVitePlugin(vitePlugin, options?)`
## Examples