|
||||
---|---|---|---|---|
.. | ||||
dist | 11e3a9652a | 7 anni fa | ||
node_modules | 11e3a9652a | 7 anni fa | ||
CHANGELOG.md | 11e3a9652a | 7 anni fa | ||
LICENSE-MIT | 11e3a9652a | 7 anni fa | ||
README.md | 11e3a9652a | 7 anni fa | ||
package.json | 11e3a9652a | 7 anni fa |
Merge CSS rules with PostCSS.
With npm do:
npm install postcss-merge-rules --save
This module will attempt to merge adjacent CSS rules:
a {
color: blue;
font-weight: bold
}
p {
color: blue;
font-weight: bold
}
a,p {
color: blue;
font-weight: bold
}
a {
color: blue
}
a {
font-weight: bold
}
a {
color: blue;
font-weight: bold
}
a {
font-weight: bold
}
p {
color: blue;
font-weight: bold
}
a,p {
font-weight: bold
}
p {
color: blue
}
See the PostCSS documentation for examples for your environment.
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
MIT © Ben Briggs