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

Build one SVG sprite by CountryCode #85

Open
OzBob opened this issue Oct 27, 2021 · 0 comments
Open

Build one SVG sprite by CountryCode #85

OzBob opened this issue Oct 27, 2021 · 0 comments

Comments

@OzBob
Copy link

OzBob commented Oct 27, 2021

Is your feature request related to a problem? Please describe.
each page load for a country select there are 100s of SVG requests, if a build step was added to create a single Sprite SVG, then these network calls could be avoided.

Describe the solution you'd like
As per: hampusborgos/country-flags#35

do something like mdi, where they allow a single svg file for all the icons. each flag will be identified by an ID tag

npm install -g svgexport imagemin-cli
npm run build-pngs -- 200 --combined=true:

Describe alternatives you've considered
Writing documentation outlining how to add particular build steps and programatic changes required to get the same result while the team works on an automated solution.

Additional context
https://github.com/svg-sprite/svg-sprite is another possibility to use.

@OzBob OzBob mentioned this issue Nov 20, 2023
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