vitesse/src/pages/README.md
2021-02-05 09:34:09 +08:00

21 lines
408 B
Markdown

## File-based Routing
Routes will auto-generated for Vue files in this dir with the same file structure.
Check out [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) for more details.
### Path Aliasing
`~/` is aliased to `./src/` folder.
For example, instead of having
```ts
import { isDark } from '../../../../logics'
```
now you can use
```ts
import { isDark } from '~/logics'
```