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
+2
-2
@@ -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'
|
||||
```
|
||||
Reference in new issue
Block a user