-
-
Notifications
You must be signed in to change notification settings - Fork 62
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(core): rewrite to use built-in svg components #239
base: next
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e2ca5e5
to
05d358c
Compare
a43bfff
to
52e0323
Compare
Caution
These changes are still highly volatile and unlikely to work for you. Proceed with caution
Building on top of the hopefully soon to be accepted Built-in SVG components in withastro/astro#12067. Discussed here withastro/roadmap#699
This adds virtual paths to the Iconify collections and icons. Simply import
astro:icons/<collection>/<icon>
in order to use the icon component.This changes also removes the functionality associated with local svg imports since this is now covered through Astro.
Another big change is that we're no longer running SVGO. I'm assuming that Iconify is handling most of the optimizations for us. Any local icon optimizations would be moved into the astro repo (likely post MVP)
TODO: