[GH-ISSUE #1212] Output only used SVG files into build folder #564

Closed
opened 2026-03-03 14:39:23 +03:00 by kerem · 1 comment
Owner

Originally created by @petr-jilek on GitHub (Jan 14, 2024).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1212

When I installed flag-icons in the react project using npm install flag-icons, and used only one icon. When I built the project, there were all SVG files in build/static/media folder. However, these files, for example, slow down the deployment process using GitHub actions when transferred using FTP. Is it possible to output only used icons?

Originally created by @petr-jilek on GitHub (Jan 14, 2024). Original GitHub issue: https://github.com/lipis/flag-icons/issues/1212 When I installed flag-icons in the react project using `npm install flag-icons`, and used only one icon. When I built the project, there were all SVG files in `build/static/media folder`. However, these files, for example, slow down the deployment process using GitHub actions when transferred using FTP. Is it possible to output only used icons?
kerem closed this issue 2026-03-03 14:39:23 +03:00
Author
Owner

@lipis commented on GitHub (Feb 19, 2024):

Not sure how to easily implement that, what I usually recommend.. just use the flags that you need.. they are not updated that often.. and from time to time use the latest :)

<!-- gh-comment-id:1953099730 --> @lipis commented on GitHub (Feb 19, 2024): Not sure how to easily implement that, what I usually recommend.. just use the flags that you need.. they are not updated that often.. and from time to time use the latest :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#564
No description provided.