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

Update adding-images-fonts-and-files.zh-CN.md #656

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/adding-images-fonts-and-files.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ console.log(logo); //logo.84287d09.png
return <Image src={logo} />;
```

为了加快加载速度,并且减少网络请求,我们会把小于 1000k 的转化为 [base64](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs),这一版只对图片有效
为了加快加载速度,并且减少网络请求,我们会把小于 1000k 的转化为 [base64](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs),这一般只对图片有效

你可能注意到最后生成的 `logo.png` 会变成 `logo.84287d09.png` ,这个是为了保证每次发布版本都会更新图片,如果不改名字的话,会命中 `logo.png` 的缓存,你可以放心的使用 import 而不用担心缓存。

Expand Down