githubEdit

postcss-merge-rules

Merge CSS rules with PostCSS.

Install

With npmarrow-up-right do:

npm install postcss-merge-rules --save

Examples

This module will attempt to merge adjacent CSS rules:

By declarations

Input

a {
    color: blue;
    font-weight: bold
}

p {
    color: blue;
    font-weight: bold
}

Output

By selectors

Input

Output

By partial declarations

Input

Output

Usage

See the PostCSS documentationarrow-up-right for examples for your environment.

Contributors

See CONTRIBUTORS.mdarrow-up-right.

License

MIT © Ben Briggsarrow-up-right

Last updated

Was this helpful?