CSSComb.js option for joining the rules with the same selectors
Acceptable value: true
.
Example: { "join-similar-rules": true }
/* before */
a { width: 10px; }
a { height: 10px; }
/* after */
a { width: 10px; height: 10px; }
This is a plugin for CSSComb.js, to learn how to use it read the corresponding docs.
- Joins equal selectors.
- Inserts missing semicolons between joined declarations.
- Works for multiple selectors in different order.
- Leaves untouched selectors if there is anything between them.
There won't be any whitespaces between the joined declarations, so you should use space-between-declarations
to set it if you'll need it.