其他分享
首页 > 其他分享> > vscode配置webpack alias支持

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"]
}

标签:node,插件,code,false,vscode,modules,alias,webpack,jsconfig
来源: https://www.cnblogs.com/raind/p/12233364.html