mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
docs(schema): clarify aliases and use more obvious example path (#3143)
* docs(schema): clarify aliases and use more obvious example path * docs: add note * Update packages/schema/build.config.ts Co-authored-by: pooya parsa <pyapar@gmail.com> * docs: add more info about tsconfig Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
parent
977cbefd9c
commit
4b17f0cbaf
@ -9,7 +9,7 @@ export default defineBuildConfig({
|
|||||||
name: 'config',
|
name: 'config',
|
||||||
builder: 'untyped',
|
builder: 'untyped',
|
||||||
defaults: {
|
defaults: {
|
||||||
rootDir: '/project/'
|
rootDir: '/<rootDir>/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'src/index'
|
'src/index'
|
||||||
|
@ -506,8 +506,9 @@ export default {
|
|||||||
* @note Within a webpack context (image sources, CSS - but not JavaScript) you _must_ access
|
* @note Within a webpack context (image sources, CSS - but not JavaScript) you _must_ access
|
||||||
* your alias by prefixing it with `~`.
|
* your alias by prefixing it with `~`.
|
||||||
*
|
*
|
||||||
* @note If you are using TypeScript and want to use the alias you define within
|
* @note These aliases will be automatically added to the generated `.nuxt/tsconfig.json` so you can get full
|
||||||
* your TypeScript files, you will need to add the aliases to your `paths` object within `tsconfig.json` .
|
* type support and path auto-complete. In case you need to extend options provided by `./.nuxt/tsconfig.json`
|
||||||
|
* further, make sure to add them here or within the `typescript.tsConfig` property in `nuxt.config`.
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```js
|
* ```js
|
||||||
|
Loading…
Reference in New Issue
Block a user