mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +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
|
# 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.
|
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:
|
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/
|
modules/
|
||||||
1.first-module/
|
1.first-module/
|
||||||
index.ts
|
index.ts
|
||||||
2.second-module.ts
|
2.second-module.ts
|
||||||
ˋ`ˋ
|
```
|
||||||
|
|
||||||
:ReadMore{link="/docs/guide/going-further/modules"}
|
:ReadMore{link="/docs/guide/going-further/modules"}
|
||||||
|
|
||||||
::
|
|
||||||
|
Loading…
Reference in New Issue
Block a user