Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit 45967a9

Browse files
committed
feat: add include of submodule directory
1 parent a3de28f commit 45967a9

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "typescript-nuxtjs-boilerplate-submodule"]
2+
path = src/include
3+
url = git@github.com:hisasann/typescript-nuxtjs-boilerplate-submodule.git

nuxt.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,16 @@ module.exports = {
121121
extendRoutes(routes: any, resolve: any) {
122122
// https://ja.nuxtjs.org/api/configuration-router/#extendroutes
123123
routes.push({
124-
name: 'ab',
124+
name: 'custom-path',
125125
path: '/example/(c|d)-:a/(e|f)-:b/*',
126126
component: resolve(__dirname, 'src/routed-pages/custom-path.vue')
127127
})
128+
129+
routes.push({
130+
name: 'include',
131+
path: '/include',
132+
component: resolve(__dirname, 'src/include/include.vue')
133+
})
128134
}
129135
}
130136
}

src/include

Submodule include added at ec10af5

0 commit comments

Comments
 (0)