mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #409] How to use flag-icon-css with Ionic 3? #250
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#250
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 @juanqui66 on GitHub (Nov 12, 2017).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/409
I'm starting with Ionic 3 and I need to use country flags and coins and I wanted to use flag-icon-css, but I do not know how to do it. I added the dependency with:
npm install --save flag-icon-css
... but now I do not know how to continue. I have reviewed the issue # 193 but then there was no ionic 2/3. Any ideas?
Thanks in advance.
@tomlutzenberger commented on GitHub (Nov 12, 2017):
I recommend to look at Ionic's documentation first:
https://ionicframework.com/docs/developer-resources/third-party-libs/
Google "use css library with ionic 3" => 2. result
@juanqui66 commented on GitHub (Nov 13, 2017):
Finally I have achieved it with the following steps (besides installing your module):
copyFlagIconCss: {
src: ['{{ROOT}}/node_modules/flag-icon-css/css/'],
dest: '{{BUILD}}'
},
copyFlagIconFlagsCss: {
src: ['{{ROOT}}/node_modules/flag-icon-css/flags/**/'],
dest: '{{WWW}}/flags/'
The problem was in which copy.config.js to use and the second line added in this file, that in no forum had seen that it was necessary to use.
Thank you and excuse my bad English.