feat: switch to vite-plugin-pages and update deps

This commit is contained in:
Anthony Fu committed 2021-01-20 19:31:13 +08:00
1 parent 559a7751a1
commit 0902d9a625
8 files changed
+94 -59

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
## File-based Routing
Routes will auto-generated for Vue files in this dir with the same file structure.
Check out [`vite-plugin-voie`](https://github.com/vamplate/vite-plugin-voie) for more details.
Check out [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) for more details.
### Path Aliasing
@@ -10,11 +10,11 @@ You can use `/~/` aliasing to `./src/` folder.
For example, instead of having
```ts
import { locales } from '../../../../messages'
import { isDark } from '../../../../logics'
```
now you can use
```ts
import { locales } from '/~/messages'
import { isDark } from '/~/logics'
```