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>
6 lines
163 B
TOML
6 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
|