feat: use vue-global-api

This commit is contained in:
Anthony Fu committed 2021-07-14 00:51:31 +08:00
1 parent fd9994485c
commit 676d01be6c
7 files changed
+751 -1021

No files matched your search

+8
View File
@@ -57,6 +57,7 @@ export default defineConfig({
// allow auto import and register components used in markdown
customLoaderMatcher: id => id.endsWith('.md'),
// generate `components.d.ts` for ts support with Volar
globalComponentsDeclaration: true,
// auto import icons
@@ -111,6 +112,13 @@ export default defineConfig({
include: [path.resolve(__dirname, 'locales/**')],
}),
],
server: {
fs: {
strict: true,
},
},
// https://github.com/antfu/vite-ssg
ssgOptions: {
script: 'async',