Closed bartkusa closed 10 years ago
+1 => I don't understand, it only removes some spaces, no redundancies.
So I just tested with:
css-purge -i test.css -o test_o.css
test.css
.test {
color: red;
color: blue;
font-weight: bold;
}
.test2 {
color: green;
}
.test2 {
color: green;
color: green;
}
.test {
color: purple;
}
.invalidProperties {
invalid:property;
}
and got:
test_o.css
.test {
color: purple;
color: purple;
font-weight: bold;
}
.test2 {
color: green;
}
.invalidProperties {
invalid: property;
}
I'm thinking for the duplicate property with different values of either retaining all the variations or using just the last one, which one sounds better?
Did you install it globally? npm install css-purge -g
Ok, I was able to replicate the issue, I'm thinking that its a dependency issue, will investigate and let y'all know...
Sorted, it was just the dependencies, thanks for reporting it in, I'll look into a dependency overhaul soon.
Resolved the duplicate rule properties.
I couldn't find any examples of what CSS-Purge does, so I don't know what to expect from it. I tried it out with this input file:
I expected the output to be:
Instead, this is what CSS-Purge actually output:
What should I have expected? What kinds of redundancies and duplicates is CSS-Purge supposed to find?