Skip to content

Templatev2#1734

Merged
markdumay merged 5 commits intobetafrom
templatev2
Jan 31, 2026
Merged

Templatev2#1734
markdumay merged 5 commits intobetafrom
templatev2

Conversation

@markdumay
Copy link
Collaborator

No description provided.

markdumay and others added 5 commits January 31, 2026 15:01
Replace purgecss-whitelister with native PurgeCSS safelist to fix
SCSS parsing errors with modern @use syntax. Configure cssnano to
preserve @font-face declarations. Fix bundle hash collision for
optional modules by using source filename instead of module list.

- Replace purgecss-whitelister with native PurgeCSS safelist patterns
  using standard, deep, and greedy matching modes for dynamic classes
- Configure cssnano discardUnused.fontFace to preserve FontAwesome and
  other @font-face declarations
- Fix bundle filename hash in stylesheet.html to use source file
  instead of modules list, resolving issue where optional module CSS
  files (leaflet, mermaid, datatables) had identical content
- Add safelist patterns for search suggestions (/suggestion__/) and
  other dynamically-added classes
- Remove purgecss-whitelister dependency from package.json
- Improve error handling in stylesheet.html template

Fixes:
- POSTCSS errors when purge is enabled with FontAwesome v7 SCSS files
- Missing @font-face declarations for FontAwesome fonts
- Leaflet map distortion due to incorrect CSS bundle content
- Missing search suggestion styles (suggestion__no-results class)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@markdumay markdumay enabled auto-merge January 31, 2026 18:15
@markdumay markdumay merged commit cb52d2c into beta Jan 31, 2026
8 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0-beta.51 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant