mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-27 01:46:02 +03:00
[GH-ISSUE #586] Importing flag-icon.scss does not work #331
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#331
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 @cpxPratik on GitHub (Aug 7, 2019).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/586
When importing
flag-icon-css/sass/flag-icon.scsswith@import '~flag-icon-css/sass/flag-icon.scss';, following errors occurs. Paths to flags assets are taken relatively and are not found.@pierreneter commented on GitHub (Aug 21, 2019):
Does
vue-cli-servicesupportsvgfiles?@rip3rs commented on GitHub (Sep 30, 2019):
It's a question of relative paths, within the import.
It's trying to search a node_module import on the folder of the project. (or am I missing something?)
@St-Ex commented on GitHub (Oct 4, 2019):
TL;DR
Explanation
It's possible to change the path of css loading in variables.scss
Then I'll load only the flag I need. Again thanks to a variable
@vladkasianenko commented on GitHub (Oct 27, 2019):
Well, yeah, as workaround, just change the path like this in your
styles.scss:@zeroinformatique commented on GitHub (Jul 2, 2020):
Sorry to reopen this issue, but I feel this should be on the front page's documentation.
I had to scan the issues to find a way to do this.