chore: update vite.config.ts (#44)

This commit is contained in:
HG authored and GitHub committed 2021-01-28 20:54:24 +08:00
1 parent 1b72a16a90
commit 4c43315a4d
1 file changed
-5
-5
View File
@@ -20,11 +20,6 @@ const config: UserConfig = {
// https://github.com/hannoeru/vite-plugin-pages // https://github.com/hannoeru/vite-plugin-pages
Pages({ Pages({
// load index page sync and bundled with the landing page to improve first loading time.
// feel free to remove if you don't need it
importMode(path: string) {
return path === '/src/pages/index.vue' ? 'sync' : 'async'
},
extensions: ['vue', 'md'], extensions: ['vue', 'md'],
}), }),