Optimize generated CSS by removing unused selectors (#2008)
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>
This commit is contained in:
parent
54d872e19b
commit
1accb9e93f
8 changed files with 1240 additions and 279 deletions
1
changelogs/internal/newsfragments/2008.clarification
Normal file
1
changelogs/internal/newsfragments/2008.clarification
Normal file
|
@ -0,0 +1 @@
|
|||
Optimize generated CSS by removing unused selectors.
|
Loading…
Add table
Add a link
Reference in a new issue