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

Question about reducing size of exported svg file #301

Open
KaragiannidesAgapios opened this issue Nov 29, 2023 · 0 comments
Open

Question about reducing size of exported svg file #301

KaragiannidesAgapios opened this issue Nov 29, 2023 · 0 comments

Comments

@KaragiannidesAgapios
Copy link

KaragiannidesAgapios commented Nov 29, 2023

Nuxt 2.17.1v
nuxtjs/svg-sprite 0.5.2v

First of all thank you for this great package, and all of your effort of providing a tool like this.

I have a quite a big library of svg icons (850-+ unique icons).
Some of them are used and some others don't.

I ran a lighthouse test before a while, and inside the Largest Contentful Paint, the second biggest file was the svg that was outputed for my icons. 176.6 KiB.

Question:
Is there a way to to export in this file only the icons that are actually used?
Or I have to manually cleanup my library and only keep the svg's that i actually use?

If there's another approach of dealing with this, please let me know.

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant