feat: add src alias path

This commit is contained in:
p-sw 2024-06-01 02:43:03 +09:00
parent 15b1a84b62
commit ac12cbd64a
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@
"baseUrl": "./",
"paths": {
"@components/*": ["components/*"],
"@/*": ["src/*"]
}
},
"include": ["components", "src"],

View File

@ -16,6 +16,7 @@ export default defineConfig({
resolve: {
alias: {
'@components': resolve(__dirname, './components'),
'@': resolve(__dirname, './src'),
}
}
});