GeezerVison is showing github.com — Pin version for postcss (Fix for wrongly rendered icons) by hannaseithe · Pull Request #4535 · digitalfabrik/integreat-cms
Conversation
hannaseithe
commented
Aug 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Short description
This pins the npm package postcss to 8.5.23 and fixes the css build bug introduced there
Proposed changes
- Pins postcss to 8.5.23 via overrides in package.json, forcing every dependency that pulls in postcss (tailwindcss, autoprefixer, postcss-preset-env, css-loader, css-minimizer-webpack-plugin, postcss-loader, postcss-cli, postcss-import, and transitively vite/vitest) to use this older version instead of whatever they'd naturally resolve to (8.5.25).
- This is a workaround for an upstream postcss regression, already tracked here: Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133 (Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133) (exact change: commit 9a114f6 (postcss/postcss@9a114f6)). As of that thread, the root cause is now understood more precisely: sass-loader/dart-sass emits a BOM/charset marker on the individually-compiled CSS module (in our case, the flagpack-dart-sass module, which contains a non-ASCII \00a0 character). postcss ≤8.5.23 silently stripped this; 8.5.24 "fixed" that by faithfully preserving it — which breaks any build (like ours) that concatenates multiple postcss-processed CSS fragments into one file via css-loader/MiniCssExtractPlugin. There's a related sass-loader issue too: Byte Order Marker (BOM) inserted after external @import affects syntax webpack/sass-loader#1335 (Byte Order Marker (BOM) inserted after external @import affects syntax webpack/sass-loader#1335), plus a pending (contested) fix PR upstream in postcss (Add integration test for DeepL feature #2136 (Do not emit multiple UTF-8 BOM markers postcss/postcss#2136)).
- Alternative fix worth knowing about, not applied here: the sass-loader issue reports that setting sassOptions.charset: false in the loader options avoids the BOM entirely, without needing to touch postcss's version at all. Didn't pursue it since the overrides pin is smaller/more contained, but it may be the more "correct" long-term fix once someone verifies it doesn't have side effects on this project's font/encoding-sensitive CSS.
- We lose two unrelated upstream fixes that shipped in 8.5.25/8.5.26 (a list.split() fix and a source-map symlink-tracking fix) — neither is exercised by this build.
- package-lock.json also has unrelated noise: a few optional platform packages lost a "libc" metadata field, from regenerating the lockfile with a slightly different npm patch version. Doesn't change any resolved package version.
- Follow-up needed: remove this override once postcss ships an accepted fix (track Prevent combination of inactive but visible language tree nodes #2133(Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133 (Do not emit multiple UTF-8 BOM markers postcss/postcss#2136)), or switch to the sassOptions.charset: false approach if that turns out cleaner.
Side effects
Faithfulness to issue description and design
There are no intended deviations from the issue and design.
How to reproduce locally
On develop (before merge into develop)
- In the file
run.sh comment out the line 39 # deescalate_privileges npm run dev 2>&1 | print_prefix "webpack" 36 &
- run
npm ci
- run
npm run prod
- run
tools/run.sh
=> See that the icons are wrongly rendered
How to test
On feature branch:
Follow steps in How to reproduce locally
Resolved issues
Fixes: #4517
Pull Request Review Guidelines
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
MizukiTemma reacted with hooray emoji
|
The failing test. is one of the flaky tests
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|