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

View File

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