mirror of
https://github.com/wu736139669/Monkey-Test.git
synced 2026-08-05 05:55:46 +00:00
51 lines
1.2 KiB
Markdown
51 lines
1.2 KiB
Markdown
# [postcss][postcss]-minify-font-weight [][ci] [][npm] [][deps]
|
|
|
|
> Minimise `font-weight` values in your CSS.
|
|
|
|
## Install
|
|
|
|
With [npm](https://npmjs.org/package/postcss-minify-font-weight) do:
|
|
|
|
```
|
|
npm install postcss-minify-font-weight --save
|
|
```
|
|
|
|
## Example
|
|
|
|
### Input
|
|
|
|
```css
|
|
h1 {
|
|
font-weight: bold;
|
|
font-weight: normal;
|
|
}
|
|
```
|
|
|
|
### Output
|
|
|
|
```css
|
|
h1 {
|
|
font-weight: 700;
|
|
font-weight: 400;
|
|
}
|
|
```
|
|
|
|
## Usage
|
|
|
|
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) 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](http://beneb.info)
|
|
|
|
[ci]: https://travis-ci.org/ben-eb/postcss-minify-font-weight
|
|
[deps]: https://gemnasium.com/ben-eb/postcss-minify-font-weight
|
|
[npm]: http://badge.fury.io/js/postcss-minify-font-weight
|
|
[postcss]: https://github.com/postcss/postcss
|