Merge CSS rules with PostCSS.
npm install postcss-merge-rules> Merge CSS rules with PostCSS.
With npm do:
```
npm install postcss-merge-rules --save
This module will attempt to merge adjacent CSS rules:
#### Input
`css
a {
color: blue;
font-weight: bold
}
p {
color: blue;
font-weight: bold
}
`
#### Output
`css`
a,p {
color: blue;
font-weight: bold
}
#### Input
`css
a {
color: blue
}
a {
font-weight: bold
}
`
#### Output
`css`
a {
color: blue;
font-weight: bold
}
#### Input
`css
a {
font-weight: bold
}
p {
color: blue;
font-weight: bold
}
`
#### Output
`css
a,p {
font-weight: bold
}
p {
color: blue
}
``
See the PostCSS documentation for
examples for your environment.
See CONTRIBUTORS.md.
MIT © Ben Briggs
[postcss]: https://github.com/postcss/postcss