|
sfcode
An Online Competing and Development Environment
|
Minify font declarations with PostCSS.
This module will try to minimise the font-family, font-weight and font shorthand properties; it can unquote font families where necessary, detect & remove duplicates, and cut short a declaration after it finds a keyword. For more examples, see the [tests](test).
Type: boolean Default: false
Pass true to remove font families after the module encounters a font keyword, for example sans-serif.
Type: boolean Default: true
Pass false to disable the module from removing duplicated font families.
Type: boolean Default: true
Pass false to disable the module from removing quotes from font families. Note that oftentimes, this is a safe optimisation & is done safely. For more details, see Mathias Bynens' article.
See PostCSS docs for examples for your environment.
See CONTRIBUTORS.md.
MIT © Bogdan Chadkin