postcss-minify-font-weight
Advanced tools
Comparing version
@@ -0,3 +1,7 @@ | ||
# 1.0.1 | ||
* Fixes for plugin guidelines compatibility. | ||
# 1.0.0 | ||
* Initial release. |
{ | ||
"name": "postcss-minify-font-weight", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Minimise font weight values in your CSS.", | ||
@@ -11,4 +11,8 @@ "main": "index.js", | ||
"css", | ||
"font", | ||
"optimise", | ||
"optimisation", | ||
"minify", | ||
"postcss", | ||
"postcss-plugins" | ||
"postcss-plugin" | ||
], | ||
@@ -28,4 +32,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"postcss": "^4.1.2" | ||
"postcss": "^4.1.11" | ||
} | ||
} |
@@ -15,11 +15,25 @@ # [postcss][postcss]-minify-font-weight [][ci] [][npm] [][deps] | ||
```js | ||
var postcss = require('postcss'); | ||
### Input | ||
var css = 'h1 { font-weight: normal }'; | ||
console.log(postcss([ require('postcss-minify-font-weight') ]).process(css).css); | ||
```css | ||
h1 { | ||
font-weight: bold; | ||
font-weight: normal; | ||
} | ||
``` | ||
// => 'h1{ font-weight: 400 }' | ||
### 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 | ||
@@ -26,0 +40,0 @@ |
3511
5.72%51
37.84%Updated