haute couture
1.0.0
高级时装会检查您的 CSS 和静态 HTML,以确保没有过时的样式。它检查指定 CSS 文件中的所有类和 ID 名称是否存在于某个 HTML 文件中。不匹配的样式将输出到文件中以供开发人员检查。
首先安装Go。
如果您只想将二进制文件安装到当前目录而不关心源代码,请运行
GOBIN= " $( pwd ) " GOPATH= " $( mktemp -d ) " go get github.com/baltimore-sun-data/haute-couture
$ haute-couture -h
Haute couture looks through your CSS and static HTML to ensure that there are
no out-of-date styles.
Usage: haute-couture [options]
Options:
-css string
CSS file to match against
-exclude value
regexp for sub-directories to exclude (default " ^. " )
-html-dir string
directory to search for HTML files (default " public " )
-include value
regexp for HTML files to process (default " .html?$ " )
-output string
file to save any found extra CSS identifiers in (default " extra-css.txt " )
嗯,这个名字就是炸药。
— 格雷格比特