🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

postcss-minify-font-weight

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-font-weight - npm Package Compare versions

Comparing version

to
1.0.1

4

CHANGELOG.md

@@ -0,3 +1,7 @@

# 1.0.1
* Fixes for plugin guidelines compatibility.
# 1.0.0
* Initial release.

10

package.json
{
"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 [![Build Status](https://travis-ci.org/ben-eb/postcss-minify-font-weight.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-minify-font-weight.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-minify-font-weight.svg)][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 @@