vue를 쓰면 @가 루트 링크를 디폴트로 잡고 있는데
vscode에서 링크를 타고 이동을 할 수가 없다.
jsconfg.json 파일에서 webpack 설정을 이용할 있다.
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
}
},
"exclude": ["node_modules"]
}
baseUrl이 꼭 있어야 paths가 작동한다.
참조: [https://code.visualstudio.com/docs/languages/jsconfig#\_using-webpack-aliases]
'개발환경 설정' 카테고리의 다른 글
VSCODE] typescript debugging configuration (0) | 2020.03.23 |
---|---|
degit - 간편하게 깃 저장소 복사하기 (0) | 2020.03.02 |
nginx] proxy_pass 적용 안되는 경우 (0) | 2019.11.12 |
git hub 암호 캐싱하기 (0) | 2019.01.27 |
port 6000 (0) | 2018.06.28 |