command line tool to find undefined or not used classes in html/css file.
$ go get github.com/moshisora/hccc
$ hccc -h path/to/html -c path/to/css
-h-html: Path to the HTML files you want to check- Select a file or directory
- If a directory is selected, hccc use included files recursively
-c-css: Path to the CSS files you want to check- Select a file or directory
- If a directory is selected, hccc use included files recursively
-v: show version-help: show help
<!-- sample.html -->
<html>
<head>...</head>
<body>
<div class="class1 class2"></div>
<div class="class2"></div>
</nody>
</html>/* sample.css */
.class2 {...}
div.class3 {...}$ hccc -h sample.html -c sample.css
classes used in html but undefined in css
class1
classes defined in css but not used in html
class3
The MIT License (MIT)
Copyright 2016~ moshisora