# postcss-media-queries-drop-redundant

> PostCSS plugin to delete redundant media query declarations

Latest version **0.0.1** (published 2016-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-media-queries-drop-redundant
pnpm add postcss-media-queries-drop-redundant
yarn add postcss-media-queries-drop-redundant
bun add postcss-media-queries-drop-redundant
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-05-18 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Michael Herbst |
| Maintainers | michiherbst |
| Keywords | postcss, css, postcss-plugin, media querie |

## Links

- npm: https://www.npmjs.com/package/postcss-media-queries-drop-redundant
- npm.io page: https://npm.io/package/postcss-media-queries-drop-redundant

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^5.0.10

## 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

- 0.0.1 (latest) — 2016-05-18

## README

# PostCSS Media Queries drop redundant

[PostCSS] plugin to delete redundant media query declarations

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

```css
/* Input example */
@media (min-width: 300px) {
    .foo {
        color: red;
    }
}

@media (min-width: 500px) {
    .foo {
        color: red;
        padding: 10px;
    }
}

@media (max-width: 1200px) {
    .foo {
        color: blue;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .foo {
        color: red;
        height: 100px;
    }
}

```

```css
/* Output example */
@media (min-width: 300px) {
    .foo {
        color: red;
    }
}

@media (min-width: 500px) {
    .foo {
        padding: 10px;
    }
}

@media (max-width: 1200px) {
    .foo {
        color: blue;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .foo {
        color: red;
    }
}
```

## Usage

```js
var mqdr = require('postcss-media-queries-drop-redundant');
postcss([mqdr])
```

See [PostCSS] docs for examples for your environment.

---
_Source: https://npm.io/package/postcss-media-queries-drop-redundant · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
