Skip to content

fix: workaround for broken styles by BOM chars with postcss >=8.5.24 with mini-css-extract-plugin - #798

Merged
ShGKme merged 1 commit into
mainfrom
fix/postcss-bom
Aug 4, 2026
Merged

ShGKme merged 1 commit into
mainfrom
fix/postcss-bom

Conversation

@ShGKme

@ShGKme ShGKme commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

PostCSS v8.5.24 breaks styles with default sass options if they contain non-ASCII characters.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@ShGKme
ShGKme requested a review from Antreesy August 4, 2026 13:36
@ShGKme ShGKme self-assigned this Aug 4, 2026
@ShGKme ShGKme added the bug Something isn't working label Aug 4, 2026
@ShGKme ShGKme changed the title fix: workaround for broken styles by BOM chars with postcss >=8.5.24 fix: workaround for broken styles by BOM chars with postcss >=8.5.24 with mini-css-extract-plugin Aug 4, 2026
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme
ShGKme enabled auto-merge August 4, 2026 14:00
@ShGKme
ShGKme merged commit a306937 into main Aug 4, 2026
6 checks passed
@ShGKme
ShGKme deleted the fix/postcss-bom branch August 4, 2026 14:01
@ShGKme ShGKme mentioned this pull request Aug 4, 2026
nodiscc added a commit to nodiscc/Shaarli that referenced this pull request Aug 6, 2026
- disable sass charset to prevent BOM in compiled CSS
- Dart Sass emits a UTF-8 BOM for CSS files containing non-ASCII characters in production (compressed) mode
- PostCSS 8.5.24+ preserves BOMs (byte-fidelity fix, see postcss/postcss#2122).
- The BOM corrupts @font-face selectors (e.g. \uFEFF@font-face), causing browsers to ignore them and not load font assets
- Fixes shaarli#2248
- Patch inspired by: nextcloud-libraries/webpack-vue-config#798
nodiscc added a commit to nodiscc/Shaarli that referenced this pull request Aug 9, 2026
- disable sass charset to prevent BOM in compiled CSS
- Dart Sass emits a UTF-8 BOM for CSS files containing non-ASCII characters in production (compressed) mode
- PostCSS 8.5.24+ preserves BOMs (byte-fidelity fix, see postcss/postcss#2122).
- The BOM corrupts @font-face selectors (e.g. \uFEFF@font-face), causing browsers to ignore them and not load font assets
- Fixes shaarli#2248
- Patch inspired by: nextcloud-libraries/webpack-vue-config#798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants