Asset size limit and entrypoint size limit warnings

Created on 18 July 2024, 5 months ago

Problem/Motivation

After running npm run build, I see a warnings like:

WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
WARN This can impact web performance.
WARN Assets: 
WARN   assets/backgrounds/civictheme_background_1.png (655 KiB)
WARN   assets/backgrounds/civictheme_background_2.png (511 KiB)
WARN   main.df3adf1d.iframe.bundle.js (2.73 MiB)
WARN   vendors~main.dc7896ba.iframe.bundle.js (1.39 MiB)
WARN   4.53bfbeab.iframe.bundle.js (828 KiB)
WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
WARN Entrypoints:
WARN   main (4.12 MiB)
WARN       runtime~main.c904e651.iframe.bundle.js
WARN       vendors~main.dc7896ba.iframe.bundle.js
WARN       main.df3adf1d.iframe.bundle.js
WARN 

Steps to reproduce

  1. Install 10.3.1
  2. Apply required core patch and clear cache
  3. Enable required modules
  4. Install CT and put as default theme
  5. Go to theme directory and run npm run build
  6. See the warnings

Proposed resolution

TBD

Remaining tasks

  1. Determine fix
  2. Update code
  3. Test
  4. Commit

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024