Skip to content

Commit

Permalink
docs: mention .global.vue filename for global components (#25144)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-basebone committed Jan 16, 2024
1 parent e166b6e commit f310dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2.guide/2.directory-structure/1.components.md
Expand Up @@ -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.
Expand Down

0 comments on commit f310dd1

Please sign in to comment.