Skip to content

Property Combination Support

Compare
Choose a tag to compare
@ChristianMurphy ChristianMurphy released this 06 Jul 02:30
· 2014 commits to main since this release

Duplicated properties can optionally be combined. (#76 thanks to @aldebaran798)

When option is enabled

postcss([require('postcss-combine-duplicated-selectors')({removeDuplicatedProperties: true})])

The following css

.a {
  height: 10px;
  background: orange;
  background: rgba(255, 165, 0, 0.5);
}

will combine into

.a {
  height: 10px; 
  background: rgba(255, 165, 0, 0.5);
}