使用vscode小技巧之解决前端import导入@开头路径无法跳转和路径补全问题

在项目根目录下创建

jsconfig.json文件并写入

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
"exclude": [
"node_modules"
]
}

posted on 2022-05-13 11:40  fengxiongmiao  阅读(398)  评论(0编辑  收藏  举报

导航