Replies: 2 comments
-
|
duplicate #15 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
so good is implemented out of the box, my solution: import fg from 'fast-glob'
// ...
dirs: [
...fg
.sync('src/modules/**/pages', {
onlyDirectories: true,
})
.map((dir) => ({
dir,
baseRoute: dir.split('/').slice(-2)[0],
})
),
]
] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
dirs: [
{ dir: 'src/views/**/pages', baseRoute: '' },
{ dir: 'src/views/abc/pages', baseRoute: 'abc' },
],
Theoretically, you can get it from extendRoute, and then modify the path prefix, but is there any other better way
Beta Was this translation helpful? Give feedback.
All reactions