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

feat: on demand social icons #4339

Merged
merged 7 commits into from
Nov 4, 2024
Merged

feat: on demand social icons #4339

merged 7 commits into from
Nov 4, 2024

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Nov 4, 2024

closes #4256
closes #4135
closes #4076
closes #3809
closes #3750
closes #1214
better implements #2768 (was reverted in #2861)

vitepress installation size will increase, but this will significantly reduce the maintenance burden.

and third party themes can also use this feature. See changes in VPSocialLink.vue.

downside of this approach is that the vp-icons.css is not fingerprinted.

and the icon stuff for dev and dynamic things is bit hacky. iconify's component handles that very well, but that's another 20KB bundle + 214KB installation size, and considering that most people won't be using that part in prod, it seems unnecessary to increase bundle size.

@brc-dd brc-dd requested a review from userquin November 4, 2024 14:35
@brc-dd
Copy link
Member Author

brc-dd commented Nov 4, 2024

/publish

Copy link

pkg-pr-new bot commented Nov 4, 2024

pnpm add https://pkg.pr.new/vitepress@4339

commit: 97aa620

@brc-dd brc-dd marked this pull request as draft November 4, 2024 14:46
@brc-dd brc-dd marked this pull request as ready for review November 4, 2024 15:13
@brc-dd brc-dd merged commit 05f2f0d into main Nov 4, 2024
10 checks passed
@brc-dd brc-dd deleted the iconify branch November 4, 2024 15:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants