mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-27 01:46:02 +03:00
[GH-ISSUE #1082] all svgs are in the dist folder #510
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#510
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 @bogdanIuga on GitHub (Jan 29, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1082
Can i set a default folder for all the flags *.svg?
Now they are all in the dist folder upon production build, which is kinda annoying. Would like to place them in the assets/flags or something
@lrljoe commented on GitHub (Feb 28, 2023):
All configurable depending on your packaging / webpack / deployment tool. Would need more detail to advise!
@kzimny commented on GitHub (Mar 22, 2023):
Thank you for the great package! I have the same question, in my project only 3 flags are needed. After
ng build productionall flags are saved as svg files in dist folder. Is there an option to define flags that are needed? Would be great.@lrljoe commented on GitHub (Mar 24, 2023):
Yes, edit flag-icons-list.less and build again.
@kzimny commented on GitHub (Mar 28, 2023):
This is how custom flag icons list works in my project. Import variables and flag-icons-base from flag-icons package to styles.scss and define your own flag-icons-list.
my own styles.scss
src/styles/flags/flag-icons-list
@Palocay commented on GitHub (Jun 5, 2023):
Unfortunately this does not work for me, any idea how I could solve this? I do exactly what you do. I import "variables" and "flag-icons-base" and then my custom flag-icons-list.
@kzimny commented on GitHub (Jun 5, 2023):
That how it works in my project
@Palocay commented on GitHub (Jun 5, 2023):
Okay, I guess the custom flag-icon-list seems to work, because when I check the result, the style.css only contains the flags I need. But the problem seems to be, that the actual flag SVG-Files can't be found, since they are located in the node_modules folder. Any idea on how to fix this?
@kzimny commented on GitHub (Jun 5, 2023):
At development time with ng serve they are coming from node_modules but when you compile for production icons are rendered as svg and saved with all other client app files