feat: add src alias path
This commit is contained in:
parent
15b1a84b62
commit
ac12cbd64a
@ -24,6 +24,7 @@
|
|||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@components/*": ["components/*"],
|
"@components/*": ["components/*"],
|
||||||
|
"@/*": ["src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["components", "src"],
|
"include": ["components", "src"],
|
||||||
|
@ -16,6 +16,7 @@ export default defineConfig({
|
|||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@components': resolve(__dirname, './components'),
|
'@components': resolve(__dirname, './components'),
|
||||||
|
'@': resolve(__dirname, './src'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user