vscode配置webpack alias支持

安装node modules resolve插件

添加jsconfig配置

https://code.visualstudio.com/docs/languages/jsconfig

{
  "compilerOptions": {
    "target": "es2017",
    "allowSyntheticDefaultImports": false,
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"]
    }
  },
  "exclude": ["node_modules", "dist"]
}

posted @ 2020-01-25 20:32  raindi  阅读(1914)  评论(0编辑  收藏  举报