[GH-ISSUE #731] Trimming the country files using $include does not work #380

Closed
opened 2026-03-03 14:37:59 +03:00 by kerem · 3 comments
Owner

Originally created by @WalterEbbers on GitHub (Jul 1, 2020).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/731

When using $include to only have the flags we want, all svg are still being copied to the dist folder:

$flag-icon-css-path: '~/flag-icon-css/flags';
$include: nl, fr, de, en;
@import '~flag-icon-css/sass/flag-icon.scss';

the app i'm building is a asp.net core 3.1 aurelia webpack application.

Is this a fault within the include? or do i also need to change something within webpack?

dist folder with to many svg's:
image

Originally created by @WalterEbbers on GitHub (Jul 1, 2020). Original GitHub issue: https://github.com/lipis/flag-icons/issues/731 When using $include to only have the flags we want, all svg are still being copied to the dist folder: ``` $flag-icon-css-path: '~/flag-icon-css/flags'; $include: nl, fr, de, en; @import '~flag-icon-css/sass/flag-icon.scss'; ``` the app i'm building is a asp.net core 3.1 aurelia webpack application. Is this a fault within the include? or do i also need to change something within webpack? dist folder with to many svg's: ![image](https://user-images.githubusercontent.com/11156526/86270013-dcc66980-bbca-11ea-9d11-1da169d53400.png)
kerem closed this issue 2026-03-03 14:37:59 +03:00
Author
Owner

@lipis commented on GitHub (Nov 6, 2020):

not sure what to do here my friend..

<!-- gh-comment-id:722714202 --> @lipis commented on GitHub (Nov 6, 2020): not sure what to do here my friend..
Author
Owner

@EdgarKisman commented on GitHub (Apr 14, 2022):

@WalterEbbers you missed quotation marks

e.g. $include: 'nl', 'fr', 'de', 'en';

<!-- gh-comment-id:1099410478 --> @EdgarKisman commented on GitHub (Apr 14, 2022): @WalterEbbers you missed quotation marks e.g. $include: 'nl', 'fr', 'de', 'en';
Author
Owner

@WalterEbbers commented on GitHub (Apr 14, 2022):

@WalterEbbers you missed quotation marks

e.g. $include: 'nl', 'fr', 'de', 'en';

Ty for the reply. I honestly forgot about opening this issue :) I have moved over to other projects and the project we used this for was discontinued. But if i ever need this again i will have a look at the provided solution!

Thnx again!

<!-- gh-comment-id:1099446070 --> @WalterEbbers commented on GitHub (Apr 14, 2022): > @WalterEbbers you missed quotation marks > > e.g. $include: 'nl', 'fr', 'de', 'en'; Ty for the reply. I honestly forgot about opening this issue :) I have moved over to other projects and the project we used this for was discontinued. But if i ever need this again i will have a look at the provided solution! Thnx again!
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#380
No description provided.