KZ
item
Негізгі бет
Трендинг
Журнал
Ұнаған бейнелер
Ең жақсы KZitem
Фильм және анимация
Автокөліктер мен көлік құралдары
Музыка
Үй жануарлары мен аңдар
Спорт
Ойындар
Комедия
Ойын-сауық
Тәжірибелік нұсқаулар және стиль
Ғылым және технология
Кіру
Тіркелу
Кіру
Тіркелу
Негізгі бет
Трендинг
Журнал
Ұнаған бейнелер
Ең жақсы KZitem
Фильм және анимация
Автокөліктер мен көлік құралдары
Музыка
Үй жануарлары мен аңдар
Спорт
Ойындар
Комедия
Ойын-сауық
Тәжірибелік нұсқаулар және стиль
Ғылым және технология
Негізгі бет
Stop typing twice!
Күн бұрын
Stop typing twice!
Рет қаралды
19,798
Wes Bos
1
1
Жүктеу
Пікірлер: 17
@MarcelRobitaille
Жыл бұрын
Yes, just like everything, it can be solved with another layer of indirection
@obouchari
Жыл бұрын
What about tree-shaking if I'm not using some of the icons and then I forgot to remove them from the export.
@desmondwilson3416
Жыл бұрын
I'm like who's this dude, watches vid...really solid advice. Ah, that's why its Wes..lol
@bob_kazamakis
Жыл бұрын
Goooooodbye treeshaking
@sahilahmed3066
8 ай бұрын
Wes Boss 👑
@--lu-c-as--
Жыл бұрын
Another method assuming you're using webpack w/ tree shaking: import * as i from "fa/icon-library" library.add(i.iconOne, i.iconTwo);
@nodemodules
Жыл бұрын
This man just doesn't miss. Every short is programming gold 👏
@wizpig64
Жыл бұрын
thank you, ive been waiting for this solution to come along!
@mdsdn
Жыл бұрын
oh wow I didn't know there was a "export from" syntax
@rgolea
Жыл бұрын
It would be lovely to just have import { faIceCream, faAmbulance } as icons from '..'
@alext5497
Жыл бұрын
Thats hot
@itsfarookmayne
Жыл бұрын
genius
@iamwebwiz
Жыл бұрын
Handy!
@WesBos
Жыл бұрын
you betcha
@shapelessed
9 ай бұрын
And that is why we can't have short compile times.
@jameshobbs
9 ай бұрын
@fortawesone ?
@nagarajansubramani
Жыл бұрын
This is pure gold. Thanks Wes! 🙌
Пікірлер: 17