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

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

Open
danceratopz opened this issue Nov 27, 2021 · 1 comment

Comments

@danceratopz
Copy link
Owner

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
Copy link
Owner Author

For now, I applied a hotfix in razzle.config.js as documented here:
jaredpalmer/razzle#671 (comment)

@danceratopz danceratopz changed the title Frontend build: Frontend build: Warning - The following asset(s) exceed the recommended size limit Nov 27, 2021
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

No branches or pull requests

1 participant