mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
docs: mention .global.vue
filename for global components (#25144)
This commit is contained in:
parent
e166b6e648
commit
f310dd1e2d
@ -93,7 +93,7 @@ Alternatively, though not recommended, you can register all your components glob
|
||||
})
|
||||
```
|
||||
|
||||
You can also selectively register some components globally by placing them in a `~/components/global` directory.
|
||||
You can also selectively register some components globally by placing them in a `~/components/global` directory, or by using a `.global.vue` suffix in the filename. As noted above, each global component is rendered in a separate chunk, so be careful not to overuse this feature.
|
||||
|
||||
::callout
|
||||
The `global` option can also be set per component directory.
|
||||
|
Loading…
Reference in New Issue
Block a user