refactor: use ~/ for alias and improve ssg
This commit is contained in:
1 parent
7074ca3704
commit
1799f56844
10 files changed
+30
-12
No files matched your search
@@ -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
@@ -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,5 +1,5 @@
|
||||
import NProgress from 'nprogress'
|
||||
import { UserModule } from '/~/types'
|
||||
import { UserModule } from '~/types'
|
||||
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
if (isClient) {
|
||||
|
||||
Reference in new issue
Block a user