使用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 阅读(573) 评论(0) 收藏 举报
浙公网安备 33010602011771号