mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #519] Angular 6/7 build #312
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#312
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 @P3tronius on GitHub (Jan 8, 2019).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/519
While building with angular (ng build --prod), the svg are written directly in public/dist.
This is a different behaviour than the other libraries (I mean, these svg are the only one written directly in public/dist, all the other resources from other libs are directly bundled in the js/css files).
Is there a way to change this?
I've tried to add the library in my project through different ways, with the same result :
Thanks,
@P3tronius commented on GitHub (Jan 8, 2019):
Well, I've found an (ugly) workaround:
In angular.json, add
And in your component's scss,
I'm only using 4x3 icons so I didn't included 1x1.
@MiguelRozalen commented on GitHub (Jan 16, 2019):
Hi @Petronious i don't know in which part of angular.json put your solution... Can u help me?
--EDIT:
I finally fixed it. Your solution works like black magic! I got it put your info inside assets object:
Then in my app style .scss:
And got it YEAH!