-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce bundle size for Material-UI #1699
Comments
With Webpack resolve/alias was able to reduce it by around 7K. LOL. So, it looks like we should be targeting ES6, not umd for our builds if we want to do tree shaking... these should be separate builds. Oh, also there's this:
|
@camillevilla I'm definitely not a pro on this. I tried out the size-limit script @mejackreed added. Are we ok with the minimized bundle being > 1MB if gzipped at under < 300KB? When running with the |
Additional discussion around tree shaking the Material-UI bundle can be found here: |
Explore babel-plugin-import option (or even better, webpack treeshaking) discussed here.
The text was updated successfully, but these errors were encountered: