From 5977adb4d47aa386770843c127a87484bf47a7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 5 Mar 2023 10:51:10 +0100 Subject: [PATCH] docs: add local modules ordering --- docs/2.guide/2.directory-structure/1.modules.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/2.guide/2.directory-structure/1.modules.md b/docs/2.guide/2.directory-structure/1.modules.md index 62dd6e146007..b2dbc75c243e 100644 --- a/docs/2.guide/2.directory-structure/1.modules.md +++ b/docs/2.guide/2.directory-structure/1.modules.md @@ -47,6 +47,15 @@ export default defineEventHandler(() => { When starting Nuxt, the `hello` module will be registered and the `/api/hello` route will be available. +The local modules are registered by alphabetical order. You can change the order by prefixing with a number if front of each directory: + +`ˋ`md +modules/ + 1.first-module/ + index.ts + 2.second-module.ts +ˋ`ˋ + :ReadMore{link="/docs/guide/going-further/modules"} ::