danceratopz / blockchain-developer-bootcamp-final-project

NFT Fractionalizer - Final Project for the 2021 Consensys Blockchain Developer Bootcamp
MIT License
8 stars 4 forks source link

Frontend build: Warning - The following asset(s) exceed the recommended size limit #4

Open danceratopz opened 2 years ago

danceratopz commented 2 years ago

Building the frontend with

yarn build

generates the warnings:

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  static/js/client.bdaf41fb.js (1.43 MiB)

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  client (1.57 MiB)
      static/css/client.e6c87707.css
      static/js/client.bdaf41fb.js

webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
danceratopz commented 2 years ago

For now, I applied a hotfix in razzle.config.js as documented here: https://github.com/jaredpalmer/razzle/issues/671#issuecomment-399311851