build: 截取构建时CLI提示信息 | intercept the CLI prompt information during the build #4192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Desc
之前展示的是完整路径 当路径过长时会导致提示信息过长 选取体验很差
做统一截取处理 只展示能够区分当前组件的部分
可以优化部分场景下的开发体验:比如下例中将终端放在一侧的场景
组件、插件、doc做了统一处理
这里使用
replace
局部替换的代码中,使用的/
分隔符是否适用于Windows存疑Screenshots
处理前:
处理后:
Commit Details
build: 缩短构建组件时CLI提示长度