feat: support layouts (#56)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
John Campion JrandAnthony Fu authored and GitHub committed 2021-02-12 12:55:19 +08:00
1 parent 8dae6f96e5
commit 83225032d0
12 files changed
+97 -13

No files matched your search

+4 -1
View File
@@ -1,8 +1,11 @@
import './styles/main.postcss'
import routes from 'pages-generated'
import { ViteSSG } from 'vite-ssg'
import generatedRoutes from 'pages-generated'
import { setupLayouts } from 'layouts-generated'
import App from './App.vue'
const routes = setupLayouts(generatedRoutes)
// https://github.com/antfu/vite-ssg
export const createApp = ViteSSG(
App,