mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs(schema): add example and description for imports.dirs
(#9346)
This commit is contained in:
parent
538ba11804
commit
73bbae3308
@ -31,6 +31,18 @@ export default defineUntypedSchema({
|
|||||||
*/
|
*/
|
||||||
imports: {
|
imports: {
|
||||||
global: false,
|
global: false,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An array of custom directories that will be auto-imported.
|
||||||
|
* Note that this option will not override the default directories (~/composables, ~/utils).
|
||||||
|
* @example
|
||||||
|
* ```js
|
||||||
|
* imports: {
|
||||||
|
* // Auto-import pinia stores defined in `~/stores`
|
||||||
|
* dirs: ['stores']
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
dirs: []
|
dirs: []
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user