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

+2 -2
View File
@@ -5,7 +5,7 @@ Check out [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) f
### Path Aliasing
`/~/` is aliased to `./src/` folder.
`~/` is aliased to `./src/` folder.
For example, instead of having
@@ -16,5 +16,5 @@ import { isDark } from '../../../../logics'
now you can use
```ts
import { isDark } from '/~/logics'
import { isDark } from '~/logics'
```