postcss-normalize-whitespace

Trim whitespace inside and around CSS rules & declarations.

MIT 41 个版本
安装
npm install postcss-normalize-whitespace
yarn add postcss-normalize-whitespace
pnpm add postcss-normalize-whitespace
bun add postcss-normalize-whitespace
README

postcss-normalize-whitespace

Normalize whitespace with PostCSS.

Install

With npm do:

npm install postcss-normalize-whitespace --save

Example

Input

h1{
    width: calc(10px - ( 100px / var(--test) )) 
}

Output

h1{
    width: calc(10px - 100px / var(--test))
}

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.2 2024-03-06
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.4 2022-02-07
5.0.3 2022-01-23
5.0.2 2022-01-07
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.2 2019-02-12
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