fulldecent / github-pages-template

An opinionated starting point and build system for awesome, collaboratively-edited HTML websites
https://fulldecent.github.io/github-pages-template/
35 stars 52 forks source link

Check for unused CSS rules #102

Open fulldecent opened 1 month ago

fulldecent commented 1 month ago

After the CSS compilation step (if any)

UnCSS is the tool we want.


Work plan

Add a test to package.json that checks all rules in build/*/.css versus the rules used in build/*/.html.

If any unused rules are found, throw an error.

Include this test in the main yarn test script.