# @pumpn/postcss-merge-rules

> Merge CSS rules with PostCSS.

Latest version **5.2.0** (published 2022-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pumpn/postcss-merge-rules
pnpm add @pumpn/postcss-merge-rules
yarn add @pumpn/postcss-merge-rules
bun add @pumpn/postcss-merge-rules
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.2.0 |
| Published | 2022-02-10 |
| First published | 2022-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^10 \|\| ^12 \|\| >=14.0 |
| Dependencies | 4 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4980 |
| Author | Ben Briggs |
| Maintainers | nnmrts |
| Keywords | css, optimise, postcss, postcss-plugin |

## Links

- npm: https://www.npmjs.com/package/@pumpn/postcss-merge-rules
- Repository: https://github.com/cssnano/cssnano
- Issues: https://github.com/cssnano/cssnano/issues
- npm.io page: https://npm.io/package/@pumpn/postcss-merge-rules

## Dependencies (4)

- [caniuse-api](https://npm.io/package/caniuse-api.md) ^3.0.0
- [browserslist](https://npm.io/package/browserslist.md) ^4.16.6
- [cssnano-utils](https://npm.io/package/cssnano-utils.md) ^3.0.2
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^6.0.5

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 5.2.0 (latest) — 2022-02-10
- 5.1.0 — 2022-02-10

## README

# [postcss][postcss]-merge-rules

> Merge CSS rules with PostCSS.

## Install

With [npm](https://npmjs.org/package/postcss-merge-rules) do:

```
npm install postcss-merge-rules --save
```

## Examples

This module will attempt to merge *adjacent* CSS rules:

### By declarations

#### Input

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

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

#### Output

```css
a,p {
    color: blue;
    font-weight: bold
}
```

### By selectors

#### Input

```css
a {
    color: blue
}

a {
    font-weight: bold
}
```

#### Output

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

### By partial declarations

#### Input

```css
a {
    font-weight: bold
}

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

#### Output

```css
a,p {
    font-weight: bold
}

p {
    color: blue
}
```

## Usage

See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
examples for your environment.

## Contributors

See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).

## License

MIT © [Ben Briggs](http://beneb.info)

[postcss]: https://github.com/postcss/postcss

---
_Source: https://npm.io/package/@pumpn/postcss-merge-rules · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
