mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-22 08:29:46 +00:00
docs: add tips on how to override layers aliases (#30970)
This commit is contained in:
parent
05b020bedb
commit
b71c6f1bf3
@ -53,6 +53,26 @@ export default defineNuxtConfig({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
::tip
|
||||||
|
You can override a layer's alias by specifying it in the options next to the layer source.
|
||||||
|
|
||||||
|
```ts [nuxt.config.ts]
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
extends: [
|
||||||
|
[
|
||||||
|
'github:my-themes/awesome',
|
||||||
|
{
|
||||||
|
meta: {
|
||||||
|
name: 'my-awesome-theme',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
]
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
Nuxt uses [unjs/c12](https://c12.unjs.io) and [unjs/giget](https://giget.unjs.io) for extending remote layers. Check the documentation for more information and all available options.
|
Nuxt uses [unjs/c12](https://c12.unjs.io) and [unjs/giget](https://giget.unjs.io) for extending remote layers. Check the documentation for more information and all available options.
|
||||||
|
|
||||||
::read-more{to="/docs/guide/going-further/layers"}
|
::read-more{to="/docs/guide/going-further/layers"}
|
||||||
|
Loading…
Reference in New Issue
Block a user