Skip to content

Find solution to vite build warning that some chunks are too large after minification #32

@klown

Description

@klown

Describe the bug

Whenever vite build is called to build the adaptive-palette client, it issues a warning:

(!) Some chunks are larger than 500 kB after minification.
...

To reproduce

Steps to reproduce the behavior:

  1. Run npm start or npm run dev. They both call the build process.
  2. Look for the warning:
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

Expected behavior

No warning when building the adaptive-palette's client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions