Skip to content

fix: leave default PWA icons out of a bundle with a custom icon path - #25489

Open
mcollovati wants to merge 2 commits into
mainfrom
fix/21411-default-pwa-icons-in-prod-bundle
Open

fix: leave default PWA icons out of a bundle with a custom icon path#25489
mcollovati wants to merge 2 commits into
mainfrom
fix/21411-default-pwa-icons-in-prod-bundle

Conversation

@mcollovati

@mcollovati mcollovati commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

The default production bundle ships PWA icons scaled from icons/icon.png. When an application points @PWA(iconPath) somewhere else, TaskGeneratePWAIcons writes the scaled icons under the configured path instead, so the ones unpacked from the bundle are never served and only add around 700 kB of unused images to the production artifact. Skip them while copying the bundle in that case.

Also report which image the icons are generated from at INFO level when the icon path is customized, so that the source of the shipped icons is visible without enabling debug logging.

Fixes #21411

The default production bundle ships PWA icons scaled from
icons/icon.png. When an application points @pwa(iconPath) somewhere
else, TaskGeneratePWAIcons writes the scaled icons under the
configured path instead, so the ones unpacked from the bundle are
never served and only add around 700 kB of unused images to the
production artifact. Skip them while copying the bundle in that case.

Also report which image the icons are generated from at INFO level
when the icon path is customized, so that the source of the shipped
icons is visible without enabling debug logging.

Fixes #21411
Logger.atLevel is SLF4J 2 only. Maven exports its own slf4j-api 1.7
from the core class realm into plugin class loaders, so build-frontend
died with a NoSuchMethodError as soon as an application enabled PWA.
Pick the level with a branch instead.
@github-actions github-actions Bot added the +1.0.0 label Sep 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 435 files  +1   1 519 suites  +1   1h 29m 38s ⏱️ - 7m 3s
11 881 tests +2  11 813 ✅ +2  68 💤 ±0  0 ❌ ±0 
12 199 runs  +2  12 131 ✅ +2  68 💤 ±0  0 ❌ ±0 

Results for commit da96b21. ± Comparison against base commit 824e297.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom PWA icons replaced by default production bundle images

1 participant