[GH-ISSUE #705] import instruction missing in documentation #371

Closed
opened 2026-03-03 14:37:53 +03:00 by kerem · 7 comments
Owner

Originally created by @AminaAmraoui on GitHub (Apr 18, 2020).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/705

Hello,
Could you please add in "Usage" documentation section the import instruction of the framework ?

Thanks !

Originally created by @AminaAmraoui on GitHub (Apr 18, 2020). Original GitHub issue: https://github.com/lipis/flag-icons/issues/705 Hello, Could you please add in "Usage" documentation section the import instruction of the framework ? Thanks !
kerem closed this issue 2026-03-03 14:37:53 +03:00
Author
Owner

@krngd2 commented on GitHub (Jun 3, 2020):

Same here, trying to figure out

<!-- gh-comment-id:638288999 --> @krngd2 commented on GitHub (Jun 3, 2020): Same here, trying to figure out
Author
Owner

@Pinguinpanic commented on GitHub (Jun 5, 2020):

Same

<!-- gh-comment-id:639347978 --> @Pinguinpanic commented on GitHub (Jun 5, 2020): Same
Author
Owner

@alessandrobelli commented on GitHub (Jul 24, 2020):

Check #586
I solved by writing:

$flag-icon-css-path: 'flags';
@import '~flag-icon-css/sass/flag-icon.scss';

and copying the flags folder to my css public folder (Laravel project).

<!-- gh-comment-id:663481964 --> @alessandrobelli commented on GitHub (Jul 24, 2020): Check #586 I solved by writing: ``` $flag-icon-css-path: 'flags'; @import '~flag-icon-css/sass/flag-icon.scss'; ``` and copying the flags folder to my css public folder (Laravel project).
Author
Owner

@nammi-kobler commented on GitHub (Dec 9, 2021):

Dude why was this closed. There's still no info on how to do the whole imports part, which is basically the middle step in between installing and using.

Rn I am just importing it as

import '../../node_modules/flag-icon-css/css/flag-icons.min.css'

Seems kind of janky to me, is this the preferred way of implementing the library?

<!-- gh-comment-id:989728690 --> @nammi-kobler commented on GitHub (Dec 9, 2021): Dude why was this closed. There's still no info on how to do the whole imports part, which is basically the middle step in between installing and using. Rn I am just importing it as `import '../../node_modules/flag-icon-css/css/flag-icons.min.css'` Seems kind of janky to me, is this the preferred way of implementing the library?
Author
Owner

@Maritims commented on GitHub (Mar 1, 2022):

Just discovered this library and wanted to use it in my Svelte project - however the readme is missing a usage section. Is something in the works?

<!-- gh-comment-id:1055818678 --> @Maritims commented on GitHub (Mar 1, 2022): Just discovered this library and wanted to use it in my Svelte project - however the readme is missing a usage section. Is something in the works?
Author
Owner

@Lucasmiguelmac commented on GitHub (Mar 6, 2022):

Just discovered this library and wanted to use it in my Svelte project - however the readme is missing a usage section. Is something in the works?

I copied import '../node_modules/flag-icons/css/flag-icons.css' inside my App.svelte

<!-- gh-comment-id:1060008863 --> @Lucasmiguelmac commented on GitHub (Mar 6, 2022): > Just discovered this library and wanted to use it in my Svelte project - however the readme is missing a usage section. Is something in the works? I copied `import '../node_modules/flag-icons/css/flag-icons.css'` inside my `App.svelte`
Author
Owner

@Bauxitedev commented on GitHub (Jun 16, 2022):

If you're using Vite you can do just do import 'flag-icons'; in your main.js.

<!-- gh-comment-id:1157444171 --> @Bauxitedev commented on GitHub (Jun 16, 2022): If you're using Vite you can do just do `import 'flag-icons';` in your `main.js`.
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#371
No description provided.