Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some key points #1

Open
hancao97 opened this issue May 20, 2021 · 0 comments
Open

Some key points #1

hancao97 opened this issue May 20, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@hancao97
Copy link

hancao97 commented May 20, 2021

更强的能力:

  1. 更多的引用方式替换规则:现发现 src方式引用 以及 import ‘xxxx’
  2. 更多的前端文件引用替换支持: less,sass
  3. 读取jsconfig或者tsconfig。动态获取路径配置信息(比如:‘@/* ’)
  4. 根据@/和../路径长短判断 引用替换路径

注意点:

引用路径可能存在简写:

  1. dirA/dirB 默认读取index.xxx
  2. dirA/file(无后缀),可能是js,vue,ts,d.ts 文件

注意剔除node_modules中的引用 @/这种转换完记得判断路径是否存在

结束

加油加油~
期望提供更强大的前端文件移动&&引用修改能力的包诞生!
Just do creative things~

@LittleIQ

@hancao97 hancao97 added the good first issue Good for newcomers label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant