You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+61-2Lines changed: 61 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,20 +62,79 @@ background-repeat: no-repeat;
62
62
63
63
Which means that the flag is just going to appear in the middle of an element, so you will have to set manually the correct size of 4 by 3 ratio or if it's squared add also the `flag-icon-squared` class.
64
64
65
+
### Framework Usage
66
+
67
+
**Vite**
68
+
69
+
Add these plugins for Vite so the svg's can be treated as components
Run the `yarn` to install the dependencies after cloning the project and you'll be able to:
68
127
69
128
To build `*.scss` files
70
129
71
130
```bash
72
-
$ yarn build
131
+
yarn build
73
132
```
74
133
75
134
To serve it on `localhost:8000`
76
135
77
136
```bash
78
-
$ yarn start
137
+
yarn start
79
138
```
80
139
81
140
To have only specific countries in the css file, remove the ones that you don't need from the [`_flag-icons-list.scss`](sass/_flag-icons-list.scss) file and build it again.
0 commit comments