angular-material-extensions / select-country

Angular Material component that allow users to select a country or nationality with an autocomplete feature
https://angular-material-extensions.github.io/select-country/
MIT License
126 stars 40 forks source link

Build one SVG sprite by CountryCode #85

Open OzBob opened 3 years ago

OzBob commented 3 years ago

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.