$ npm install -g css-semdiff
$ css-astdiff a.css b.css
$ css-astdiff <(cat a.css) <(cat b.css)
--verbose
: Display verbose output
$ css-astdiff a.css b.css
2 extra rules and 2 missing rules
$ css-astdiff a.css b.css --verbose
extra:
.extra-1 {
border: none;
}
extra:
.extra-2 {
border: none;
}
missing:
.missing-1 {
border: none;
}
missing:
.missing-2 {
border: none;
}
---------------------------------
2 extra rules and 2 missing rules
$ css-orderdiff a.css b.css
$ css-orderdiff <(cat a.css) <(cat b.css)
--verbose
: Display verbose output
$ css-orderdiff a.css b.css
3 selectors changed
$ css-orderdiff a.css b.css --verbose
order changed: a
become to be lower than:
b
i
order changed: b
become to be higher than:
a
order changed: i
become to be higher than:
a
-------------------
3 selectors changed
MIT