一、vite配置
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
二、虽然生效了但是没有路径提示
"CompilerOptions":{
"paths": {
"@/*": [
"src/*"
]
}}
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
"CompilerOptions":{
"paths": {
"@/*": [
"src/*"
]
}}