Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vue文件id 算法修改#1991

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
VICTORYGS wants to merge2 commits intovuejs:main
base:main
Choose a base branch
Loading
fromVICTORYGS:next
Open

Conversation

VICTORYGS
Copy link

1:由于为了实现组件样式的scoped,每个css属性都必须附加上[data-v-xxxxxxxx]这样的属性。这样导致css资源大小会被扩大,感觉目前的hash有点长,不够简洁。


2:时间上会有略微的提升。目前的算法,当生产环境时,为了防止碰撞,加上的source,此时hash运算会更加耗时。

改成计数标记id,之后转化为36进制缩短id字符长度
复用 shortFilePath 计算结果,避免重复计算
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@VICTORYGS

[8]ページ先頭

©2009-2025 Movatter.jp