matrix-spec/config/production/hugo.toml
Kévin Commaille 5ece2edf2d
Optimize generated CSS by removing unused selectors
Hugo generates stats about the HTML elements, IDs and classes that can be found in the website,
and we post-process the rendered CSS with postcss-purgecss that uses those stats to remove unused selectors.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-11-20 11:28:00 +01:00

7 lines
163 B
TOML

# Settings only required when the website is built for production.
# Enable stats to use them to optimize the CSS.
[build]
[build.buildStats]
enable = true