Discover and read the best of Twitter Threads about #фронтенд

Most recents (1)

Тред о том, как мы оптимизируем размер бандла 🗜️ #dev
1. Писали стили по привычке в kebab-case, в результате чего имели дубликаты в css-маппере

"size-2x": "b2s45",
size2X: "b2s45",

вроде ничего страшного, но вот эти лишние 30-50Кб зачем они?
Перешли на kamelCase: автозаменой где смогли, вручную рефакторим с

[styles[`theme-${theme}`]]
на
[styles[`${theme}Theme`]]
Read 26 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!