postcss-discard-empty

Discard empty rules and values with PostCSS.

MIT 47 个版本
安装
npm install postcss-discard-empty
yarn add postcss-discard-empty
pnpm add postcss-discard-empty
bun add postcss-discard-empty
README

postcss-discard-empty

Discard empty rules and values with PostCSS.

Install

With npm do:

npm install postcss-discard-empty --save

Example

For more examples see the tests.

Input

@font-face;
h1 {}
{color:blue}
h2 {color:}
h3 {color:red}

Output

h3 {color:red}

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

版本列表
8.0.1 2026-06-11
8.0.0 2026-05-06
7.0.3 2026-05-02
7.0.2 2026-04-20
7.0.1 2025-05-06
7.0.0 2024-04-24
6.0.3 2024-03-06
6.0.2 2024-02-22
6.0.1 2023-12-14
6.0.0 2023-03-27
5.1.1 2022-03-10
5.1.0 2022-03-01
5.0.3 2022-02-07
5.0.2 2022-01-23
5.0.1 2021-05-19
5.0.0-rc.2 2021-03-15
5.0.0-rc.1 2021-03-05
5.0.0-rc.0 2021-02-19
5.0.0 2021-04-10
4.0.1 2018-09-24
4.0.0-rc.2 2017-08-06
4.0.0-rc.0 2017-06-01
4.0.0 2018-07-04
2.1.0 2016-04-26
2.0.1 2016-02-06
2.0.0 2015-09-04
1.1.2 2015-08-13
1.1.1 2015-06-24
1.1.0 2015-04-02
1.0.0 2015-03-29