mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: clarify plugins are auto-registered, remove components default (#9815)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
850733e160
commit
f3263ebb9d
@ -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']}
|
||||||
*/
|
*/
|
||||||
|
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user