Skip to content

Conversation

egor-zalenski
Copy link
Contributor

@egor-zalenski egor-zalenski commented Jan 17, 2025

Changes

  1. Reworked ui web build

    • Decreased size from ~19MB to ~13 MB
    • Split bundles into smaller chunks to enable faster concurrent downloads.
    • Updated page placeholder behavior: the placeholder remains visible until all necessary JS bundles are downloaded (previously, it was just a white screen).
  2. Plugins: Instead of a single general plugin, a new plugin named common has been added, which contains duplicate packages for all plugins (react, react-dom, elastic, etc.).

    • Migrated build system from Parcel to Vite.
    • Reduced plugins build size from ~13MB to ~6.9MB
    • Improved built time from ~2min to ~1min
    • All plugins are built in a single place redisinsight/ui/src/packages/vite.config.mjs
  3. Automated UI vendor (RI styles and fonts) updates for plugins on AWS S3.

    • The update process is triggered by the dev build of the Linux application.

All new builds are here:
https://github.com/RedisInsight/RedisInsight/actions/runs/12837663096#summary-35802244018

@egor-zalenski egor-zalenski force-pushed the fe/feature/RI-5411_Optimize_builds2 branch from b918e89 to 50b8079 Compare January 20, 2025 14:12
@egor-zalenski egor-zalenski merged commit bb340a3 into main Jan 20, 2025
15 checks passed
@egor-zalenski egor-zalenski deleted the fe/feature/RI-5411_Optimize_builds2 branch January 20, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants