| @@ -29,6 +29,11 @@ for (const path of stadalonePaths) { | |||||
| standalone[parse(path).name] = [path]; | standalone[parse(path).name] = [path]; | ||||
| } | } | ||||
| const vuePages = {}; | |||||
| for (const path of glob('web_src/vuepages/**/vp-*.js')) { | |||||
| vuePages[parse(path).name] = [path]; | |||||
| } | |||||
| const isProduction = process.env.NODE_ENV !== 'development'; | const isProduction = process.env.NODE_ENV !== 'development'; | ||||
| module.exports = { | module.exports = { | ||||
| @@ -44,6 +49,7 @@ module.exports = { | |||||
| icons: glob('node_modules/@primer/octicons/build/svg/**/*.svg'), | icons: glob('node_modules/@primer/octicons/build/svg/**/*.svg'), | ||||
| ...standalone, | ...standalone, | ||||
| ...themes, | ...themes, | ||||
| ...vuePages, | |||||
| }, | }, | ||||
| devtool: false, | devtool: false, | ||||
| output: { | output: { | ||||
| @@ -267,6 +273,7 @@ module.exports = { | |||||
| symlinks: false, | symlinks: false, | ||||
| alias: { | alias: { | ||||
| vue$: 'vue/dist/vue.esm.js', // needed because vue's default export is the runtime only | vue$: 'vue/dist/vue.esm.js', // needed because vue's default export is the runtime only | ||||
| '~': resolve(__dirname, 'web_src/vuepages'), | |||||
| }, | }, | ||||
| extensions: ['.tsx', '.ts', '.js'] | extensions: ['.tsx', '.ts', '.js'] | ||||
| }, | }, | ||||
| @@ -29,6 +29,11 @@ for (const path of stadalonePaths) { | |||||
| standalone[parse(path).name] = [path]; | standalone[parse(path).name] = [path]; | ||||
| } | } | ||||
| const vuePages = {}; | |||||
| for (const path of glob('web_src/vuepages/**/vp-*.js')) { | |||||
| vuePages[parse(path).name] = [path]; | |||||
| } | |||||
| const isProduction = process.env.NODE_ENV !== 'development'; | const isProduction = process.env.NODE_ENV !== 'development'; | ||||
| module.exports = { | module.exports = { | ||||
| @@ -44,6 +49,7 @@ module.exports = { | |||||
| icons: glob('node_modules/@primer/octicons/build/svg/**/*.svg'), | icons: glob('node_modules/@primer/octicons/build/svg/**/*.svg'), | ||||
| ...standalone, | ...standalone, | ||||
| ...themes, | ...themes, | ||||
| ...vuePages, | |||||
| }, | }, | ||||
| devtool: false, | devtool: false, | ||||
| output: { | output: { | ||||
| @@ -267,6 +273,7 @@ module.exports = { | |||||
| symlinks: false, | symlinks: false, | ||||
| alias: { | alias: { | ||||
| vue$: 'vue/dist/vue.esm.js', // needed because vue's default export is the runtime only | vue$: 'vue/dist/vue.esm.js', // needed because vue's default export is the runtime only | ||||
| '~': resolve(__dirname, 'web_src/vuepages'), | |||||
| }, | }, | ||||
| extensions: ['.tsx', '.ts', '.js'] | extensions: ['.tsx', '.ts', '.js'] | ||||
| }, | }, | ||||