Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-minify-font-weight

ben-eb22.5kMITdeprecated2.0.0

This module has been superceded by postcss-minify-font-values.

Minimise font weight values in your CSS.

css, font, optimise, optimisation, minify, postcss, postcss-plugin

readme

postcss-minify-font-weight Build Status NPM version Dependency Status

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

changelog

2.0.0

  • Upgraded to PostCSS 5.

1.0.1

  • Fixes for plugin guidelines compatibility.

1.0.0

  • Initial release.