keywords introduced by vue-cli using @ absolute path import have no syntax hint in vscode, but relative paths are:
both compilation runs are fine. How can vscode recognize the absolute path defined by webpack alias?
keywords introduced by vue-cli using @ absolute path import have no syntax hint in vscode, but relative paths are:
both compilation runs are fine. How can vscode recognize the absolute path defined by webpack alias?
vscode, you can add a jsconfig.json file to the project root for configuration.
configuration is as follows:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"target": "ES6",
"module": "commonjs",
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Previous: The mobile input input box cannot scroll to the visual area immediately after gaining focus.
Next: Using http-proxy-middleware agent in koa2 didn't work.