[GH-ISSUE #589] Question - How to use the scss variable $include #334

Closed
opened 2026-03-03 14:37:38 +03:00 by kerem · 2 comments
Owner

Originally created by @Martin-Andersen on GitHub (Aug 12, 2019).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/589

How do you set up your project if you only want some of the flags?
Should I populate the variable $include and then import the flag-con.scss file?

@if variable-exists(include) {
  @each $country in $include {
    @include flag-icon($country);
  }
} @else {
Originally created by @Martin-Andersen on GitHub (Aug 12, 2019). Original GitHub issue: https://github.com/lipis/flag-icons/issues/589 How do you set up your project if you only want some of the flags? Should I populate the variable $include and then import the flag-con.scss file? ``` @if variable-exists(include) { @each $country in $include { @include flag-icon($country); } } @else { ```
kerem closed this issue 2026-03-03 14:37:38 +03:00
Author
Owner

@lipis commented on GitHub (Sep 9, 2019):

This question doesn't belong here.. it's a SCSS question..

<!-- gh-comment-id:529397284 --> @lipis commented on GitHub (Sep 9, 2019): This question doesn't belong here.. it's a SCSS question..
Author
Owner

@Martin-Andersen commented on GitHub (Oct 4, 2019):

I don’t agree. This is a question about how to only use a selection of the flags

<!-- gh-comment-id:538437894 --> @Martin-Andersen commented on GitHub (Oct 4, 2019): I don’t agree. This is a question about how to only use a selection of the flags
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#334
No description provided.