refactor: use ~/ for alias and improve ssg

This commit is contained in:
Anthony Fu committed 2021-02-05 09:34:09 +08:00
1 parent 7074ca3704
commit 1799f56844
10 files changed
+30 -12

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
```ts
import { UserModule } from '/~/types'
import { UserModule } from '~/types'
export const install: UserModule = ({ app, router, isClient }) => {
// do something
+1 -1
View File
@@ -1,5 +1,5 @@
import { createI18n } from 'vue-i18n'
import { UserModule } from '/~/types'
import { UserModule } from '~/types'
// import i18n resources
// https://vitejs.dev/guide/features.html#glob-import
+1 -1
View File
@@ -1,5 +1,5 @@
import NProgress from 'nprogress'
import { UserModule } from '/~/types'
import { UserModule } from '~/types'
export const install: UserModule = ({ isClient, router }) => {
if (isClient) {