mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #704] Only need the flags I want in my project #368
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daniaaalarshad on GitHub (Apr 14, 2020).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/704
Is there a possibility to only include the flags which I need through npm and not all the country flags, I want to save the storage.
Or maybe its a good idea just to download from the resource from lipis you provided ? what do you say ?
@CapitaineToinon commented on GitHub (May 11, 2020):
You could use PurgeCSS to get rid of unused flags in your build step.
@daniaaalarshad commented on GitHub (May 12, 2020):
@CapitaineToinon ahan nice :D, Thankyou (Y)
@TheSlimvReal commented on GitHub (Oct 4, 2021):
Picking up on this question. How exactly would I do that? As far as I understand it, I have to run PurgeCSS on the
flag-icon.min.cssbut this I have to do before building the application so thesvgare not created.As a background, I am using a service worker to cache all the flag icons so I need to remove all the unused flag icons before deployment.