Last active
May 25, 2020 11:22
-
-
Save Edmund1645/3f36d9cb844f5a75ae59bfb561b926e2 to your computer and use it in GitHub Desktop.
jsconfig.json files to add webpack aliases imports intellisense to VSCode for Nuxt and Vue.js projects
This file contains hidden or 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
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"paths": { | |
"~/*": ["./*"], | |
"@/*": ["./*"], | |
"~~/*": ["./*"], | |
"@@/*": ["./*"] | |
} | |
}, | |
"exclude": ["node_modules", ".nuxt", "dist"] | |
} |
This file contains hidden or 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
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"paths": { | |
"@/*": ["./src/*"], | |
} | |
}, | |
"exclude": ["node_modules", "dist"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The two files above help provide support for intellisense in VScode when importing absolute modules using webpack imports
Be sure to rename the file you wish to use to
jsconfig.json
Thanks to Louis-Marie Michelin for writing about it here