Skip to content
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

Improving webpack build time and filesize #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improving webpack build time and filesize #16

wants to merge 1 commit into from

Conversation

murilobast
Copy link

  • Using the new and better "babel-preset-env "
  • Compressing JS code from 3.5MB to 1.4MB (even better when gzipped)
  • Removing yarn.lock from git
  • Adding babel-polyfill to the entry js file
  • Using .babelrc for better and modular babel configuration
  • Fixing webpack.config.js file indentation
  • Moving some packages from dependencies to devDependencies as they aren't used in runtime

TODO and CONCERNS:

  • Maybe we should stop using buma framework and "neatfy" the css code as it is HUGE (150kb+)
  • Code splitting between routes, 1.5mb js bundle is to big
  • Async chunks: chart.js, web3 and large modules could be asynchronous loaded to drastically improve page load time
  • Define a coding convetions to avoid code madness and make the project easier to understand

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.

2 participants