21 lines
408 B
Markdown
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'
|
|
```
|