Skip to content

Commit

Permalink
doc: add a glob in spa example
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed May 18, 2021
1 parent f62dd51 commit dce447d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/vue/src/admin/pages/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<p>/admin/index.vue</p>
<p>located in features /admin/pages folder</p>
</template>

<script>
export default {
}
</script>

<style>
</style>
<route>
{
meta: {
requiresAuth: false
}
}
</route>
21 changes: 21 additions & 0 deletions examples/vue/src/features/dashboard/pages/welcome.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<p>/features/dashboard/welcome.vue</p>
<p>located in features /features/dashboard/pages folder</p>
</template>

<script>
export default {
}
</script>

<style>
</style>
<route>
{
meta: {
requiresAuth: true
}
}
</route>
1 change: 1 addition & 0 deletions examples/vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = defineConfig({
// pagesDir: ['src/pages', 'src/pages2'],
pagesDir: [
{ dir: 'src/pages', baseRoute: '' },
{ dir: 'src/features/**/pages', baseRoute: 'features' },
{ dir: 'src/features/admin/pages', baseRoute: 'admin' },
],
extensions: ['vue', 'md'],
Expand Down

0 comments on commit dce447d

Please sign in to comment.