Created
September 14, 2020 05:36
-
-
Save apgapg/b1ebb4c945a048fa1c237fab803c1ad7 to your computer and use it in GitHub Desktop.
Adding path alias in vs code to resolve @ (for src/) in imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"include": [ | |
"./src/**/*" | |
], | |
"compilerOptions": { | |
"baseUrl": "src", | |
"paths": { | |
"@/*": [ | |
"./*" | |
] | |
} | |
}, | |
"exclude": [ | |
"node_modules", | |
"dist" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For eg.
import { imageUpload } from '@/mixins/imageUpload';
VS code will resolve image upload ie ctrl+click would work