mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
docs: fix local modules
This commit is contained in:
parent
8732720221
commit
c4222b1f6e
@ -7,7 +7,7 @@ description: Use the modules/ directory to automatically register local modules
|
||||
|
||||
# Modules Directory
|
||||
|
||||
::StabilityEdge
|
||||
:StabilityEdge
|
||||
|
||||
Nuxt scans the `modules/` directory and loads them before starting. It is a good place to place any local modules you develop while building your application.
|
||||
|
||||
@ -49,13 +49,11 @@ When starting Nuxt, the `hello` module will be registered and the `/api/hello` r
|
||||
|
||||
The local modules are registered by alphabetical order. You can change the order by prefixing with a number if front of each directory:
|
||||
|
||||
`ˋ`md
|
||||
```md
|
||||
modules/
|
||||
1.first-module/
|
||||
index.ts
|
||||
2.second-module.ts
|
||||
ˋ`ˋ
|
||||
```
|
||||
|
||||
:ReadMore{link="/docs/guide/going-further/modules"}
|
||||
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user