diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/postcss-minify-font-values/README.md | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/postcss-minify-font-values/README.md')
| -rw-r--r-- | node_modules/postcss-minify-font-values/README.md | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/node_modules/postcss-minify-font-values/README.md b/node_modules/postcss-minify-font-values/README.md deleted file mode 100644 index 96d7f5d4..00000000 --- a/node_modules/postcss-minify-font-values/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# postcss-minify-font-values [![Build Status][ci-img]][ci] - -> 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). - -```css -h1 { - font:bold 2.2rem/.9 "Open Sans Condensed", sans-serif; -} - -p { - font-family: "Helvetica Neue", Arial, sans-serif, Helvetica; - font-weight: normal; -} -``` - -```css -h1 { - font:700 2.2rem/.9 Open Sans Condensed,sans-serif -} - -p { - font-family: Helvetica Neue,Arial,sans-serif; - font-weight: 400; -} -``` - -## API - -### minifyFontValues([options]) - -#### options - -##### removeAfterKeyword - -Type: `boolean` -Default: `false` - -Pass `true` to remove font families after the module encounters a font keyword, -for example `sans-serif`. - -##### removeDuplicates - -Type: `boolean` -Default: `true` - -Pass `false` to disable the module from removing duplicated font families. - -##### removeQuotes - -Type: `boolean` | `(prop: string) => '' | 'font' | 'font-family' | 'font-weight'` -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][mathias]. - -Pass a function to determine whether a css variable is one of `font`, `font-family`, and `font-weight` to determine whether the variable needs to remove quotes. - -## Usage - -```js -postcss([ require('postcss-minify-font-values') ]) -``` - -See [PostCSS] docs for examples for your environment. - -## Contributors - -See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md). - -# License - -MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru) - -[mathias]: https://mathiasbynens.be/notes/unquoted-font-family -[PostCSS]: https://github.com/postcss/postcss -[ci-img]: https://travis-ci.org/cssnano/postcss-minify-font-values.svg -[ci]: https://travis-ci.org/cssnano/postcss-minify-font-values |
