postcss-normalize-whitespace

Trim whitespace inside and around CSS rules & declarations.

Usage no npm install needed!

<script type="module">
  import postcssNormalizeWhitespace from 'https://cdn.skypack.dev/postcss-normalize-whitespace';
</script>

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