docs: clarify plugins are auto-registered, remove components default (#9815)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
BetonZM 2023-01-02 19:18:50 +01:00 committed by GitHub
parent 850733e160
commit f3263ebb9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,6 @@ export default defineUntypedSchema({
* Any components in the directories configured here can be used throughout your * Any components in the directories configured here can be used throughout your
* pages, layouts (and other components) without needing to explicitly import them. * pages, layouts (and other components) without needing to explicitly import them.
* *
* @default {{ dirs: [`~/components`] }}
* @see https://nuxt.com/docs/guide/directory-structure/components * @see https://nuxt.com/docs/guide/directory-structure/components
* @type {boolean | typeof import('../src/types/components').ComponentsOptions | typeof import('../src/types/components').ComponentsOptions['dirs']} * @type {boolean | typeof import('../src/types/components').ComponentsOptions | typeof import('../src/types/components').ComponentsOptions['dirs']}
*/ */

View File

@ -165,6 +165,12 @@ export default defineUntypedSchema({
* *
* It can also be an object with `src` and `mode` keys. * It can also be an object with `src` and `mode` keys.
* *
* @note Plugins are also auto-registered from the `~/plugins` directory
* and these plugins do not need to be listed in `nuxt.config` unless you
* need to customize their order. All plugins are deduplicated by their src path.
*
* @see https://nuxt.com/docs/guide/directory-structure/plugins
*
* @example * @example
* ```js * ```js
* plugins: [ * plugins: [