@nuxt/docs-nightly 4.0.4-29241079.38644b93 → 4.0.4-29241351.8ea3fc34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,15 +15,16 @@ export default defineNuxtConfig({})
|
|
|
15
15
|
|
|
16
16
|
Additionally, certain other files in the layer directory will be auto-scanned and used by Nuxt for the project extending this layer.
|
|
17
17
|
|
|
18
|
-
- [`components/*`](/docs/guide/directory-structure/components) - Extend the default components
|
|
19
|
-
- [`composables/*`](/docs/guide/directory-structure/composables) - Extend the default composables
|
|
20
|
-
- [`layouts/*`](/docs/guide/directory-structure/layouts) - Extend the default layouts
|
|
21
|
-
- [`
|
|
22
|
-
- [`
|
|
18
|
+
- [`app/components/*`](/docs/guide/directory-structure/components) - Extend the default components
|
|
19
|
+
- [`app/composables/*`](/docs/guide/directory-structure/composables) - Extend the default composables
|
|
20
|
+
- [`app/layouts/*`](/docs/guide/directory-structure/layouts) - Extend the default layouts
|
|
21
|
+
- [`app/middleware/*`](/docs/guide/directory-structure/middleware) - Extend the default middleware
|
|
22
|
+
- [`app/pages/*`](/docs/guide/directory-structure/pages) - Extend the default pages
|
|
23
|
+
- [`app/plugins/*`](/docs/guide/directory-structure/plugins) - Extend the default plugins
|
|
24
|
+
- [`app/utils/*`](/docs/guide/directory-structure/utils) - Extend the default utils
|
|
25
|
+
- [`app/app.config.ts`](/docs/guide/directory-structure/app-config) - Extend the default app config
|
|
23
26
|
- [`server/*`](/docs/guide/directory-structure/server) - Extend the default server endpoints & middleware
|
|
24
|
-
- [`utils/*`](/docs/guide/directory-structure/utils) - Extend the default utils
|
|
25
27
|
- [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config)- Extend the default nuxt config
|
|
26
|
-
- [`app.config.ts`](/docs/guide/directory-structure/app-config) - Extend the default app config
|
|
27
28
|
|
|
28
29
|
## Basic Example
|
|
29
30
|
|
|
@@ -57,7 +58,7 @@ Additionally, certain other files in the layer directory will be auto-scanned an
|
|
|
57
58
|
})
|
|
58
59
|
```
|
|
59
60
|
|
|
60
|
-
```vue [base/components/BaseComponent.vue]
|
|
61
|
+
```vue [base/app/components/BaseComponent.vue]
|
|
61
62
|
<template>
|
|
62
63
|
<h1>Extending Components is Fun!</h1>
|
|
63
64
|
</template>
|
|
@@ -194,7 +195,7 @@ const currentDir = dirname(fileURLToPath(import.meta.url))
|
|
|
194
195
|
|
|
195
196
|
export default defineNuxtConfig({
|
|
196
197
|
css: [
|
|
197
|
-
join(currentDir, './assets/main.css')
|
|
198
|
+
join(currentDir, './app/assets/main.css')
|
|
198
199
|
]
|
|
199
200
|
})
|
|
200
201
|
```
|