chore: bump deps

This commit is contained in:
Anthony Fu committed 2020-10-27 10:15:11 +08:00
1 parent bc889a07ad
commit c01ae61223
3 files changed
+277 -207

No files matched your search

+9 -1
View File
@@ -11,7 +11,15 @@ const alias = {
const config: UserConfig = {
alias,
plugins: [
Voie(),
Voie({
// 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) {
if (path === '/src/pages/index.vue')
return 'sync'
return 'async'
},
}),
ViteComponents({
// currently, vite does not provide an API for plugins to get the config https://github.com/vitejs/vite/issues/738
// as the `alias` changes the behavior of middlewares, you have to pass it to ViteComponents to do the resolving