alias-skip
alias-skip copied to clipboard
别名路径跳转插件,支持任何项目,可以自由配置映射规则,自由配置可缺省后缀名列表
import A from '/src/A' 目录结构 src --A ----index.js 想咨询下上面这种格式是否支持跳转
router 中引入的 vue 文件 以 @ 开头不能跳转到对应文件 ```javascript import(/* webpackChunkName: "Material" */ '@/views/material/TabKnowledgeEdit') ```
如css文件: background-image: url(~@/assets/img/h5/headerBg.png); 配置: "alias-skip.mappings": { "~@":"/src" } jsconfig.json中 "paths": { "@/*": ["src/*"], "~@/*": ["src/*"] } 对css文件中~@插件不能生效。
Linux 下好像不工作, **~/.config/Code/User/settings.json** ```json "alias-skip.mappings": { "@comp": "/src/components", "~@assets": "/src/assets", "@views": "/src/views", "@api": "/src/api", "@/config": "/src/config", "@config": "/src/config", "core": "/src/core", "compiler": "/src/compiler", "shared": "/src/shared", "web": "/src/platforms/web", "weex": "/src/platforms/weex", "server": "/src/server",...
1. 插件原本仅获取第一个双引号或单引号包裹的内容; 2. 遇到 webpackChunk 备注,获取到的是分包名;不符合预期; 3. 添加 webpackChunk 注释格式的替换,以便简单跳转到对应文件; 
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
主要针对的是 vue 路由给组件附加注释的时候,跳转的地址被注释影响了,导致无法跳转,因此对字符串去除注释,再把position重新定位,就可以正常跳转了
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.0 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...