postcss-minify-font-weight

Minimise font weight values in your CSS.


Keywords
css, font, optimise, optimisation, minify, postcss, postcss-plugin
License
MIT
Install
npm install postcss-minify-font-weight@2.0.0

Documentation

Deprecation Notice

⚠️ This project is now deprecated; use postcss-minify-font-values instead.

postcss-minify-font-weight

Minimise font-weight values in your CSS.

Install

With npm do:

npm install postcss-minify-font-weight --save

Example

Input

h1 {
    font-weight: bold;
    font-weight: normal;
}

Output

h1 {
    font-weight: 700;
    font-weight: 400;
}

Usage

See the PostCSS documentation for examples for your environment.

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Ben Briggs