Tag

key encoding

1 views collected around this technical thread.

ByteFE
ByteFE
Dec 6, 2021 · Frontend Development

Compressing i18n Keys to Reduce Bundle Size and Speed Up Frontend Builds

This article describes a method for shortening i18n keys in Feishu's frontend architecture by encoding them into compact strings, integrating the process into Babel and webpack pipelines, and demonstrates a 7.2 MB reduction in total page code size for over 11,000 keys.

BabelCode CompressionWebpack
0 likes · 9 min read
Compressing i18n Keys to Reduce Bundle Size and Speed Up Frontend Builds