Page MenuHomePhabricator

[Cashtab] Reduce bundle size by about ~50%
ClosedPublic

Authored by alcipir on May 23 2021, 06:47.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC2f33f59fea6f: [Cashtab] Reduce bundle size by about ~50%
Summary

By enabling the minimize option on webpack config, the bundled size of the largest chunk (~600KB) shrinks down to ~300KB.

Test Plan

npm build, check bundle size, test locally using serve (npm install -g serve): serve -s build.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cashtab-reduce-bundle-size
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15784
Build 31468: Build Diffcashtab-tests
Build 31467: arc lint + arc unit

Event Timeline

alcipir requested review of this revision.May 23 2021, 06:47
This revision is now accepted and ready to land.May 23 2021, 18:02

Adding isEnvProduction flag to minimize option so it doesnt minify on development

This revision was automatically updated to reflect the committed changes.