Possible to merge properties of same selector in different places?
folosophy opened this issue · 2 comments
folosophy commented
Let's say I have the following:
html {
color: red;
}
html {
left: 4px;
}
This will output two of the same selectors in the final CSS file, which seems wasteful.
Is there any way to combine properties, so the CSS just prints one selector?
html {
color: red;
left: 4px;
}
seven-phases-max commented
In short: no (Less is not CSS optimizer/analyzer) - you can use aggressive clean-css opts though. See also less/less.js#930.
seven-phases-max commented
Closing as a dupicate of less/less.js#930 (and wrong repo).