select-country icon indicating copy to clipboard operation
select-country copied to clipboard

Build one SVG sprite by CountryCode

Open OzBob opened this issue 4 years ago • 0 comments

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: https://github.com/hampusborgos/country-flags/issues/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 avatar Oct 27 '21 07:10 OzBob