sillsdev/appbuilder-portal

React App's bundle size needs to be smaller

Closed this issue · 0 comments

Did a bundle analysis from this branch/pr: #182
image

Main notes:

  • (173KB gz) auth0-lock includes its own node_modules|
    • 72KB is "node_modules"
    • 101KB is "lib" -- maybe there is a way to get this trimmed down or load auth0-lock async when we hit the login route
  • (132KB gz) semantic-ui
    • about 28KB is unused image assets
  • (62KB gz) semantic-ui-react
    • should be able to be trimmed down by not importing any components from semantic-ui-react
  • (62KB + 16.34KB + 24.85KB gz) moment
  • app.js is looking good at 63KB
    • 10KB is css - maybe this could be trimmed?