mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2026-05-22 10:48:13 +08:00
13 lines
232 B
Markdown
13 lines
232 B
Markdown
# alias
|
|
|
|
```javascript
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'#': fileURLToPath(new URL('./types', import.meta.url))
|
|
},
|
|
},
|
|
```
|