postcss-minify-font-values
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,0 +0,0 @@ var assign = require('object-assign'); |
@@ -0,0 +0,0 @@ var keywords = module.exports = { |
var stringify = require('postcss-value-parser').stringify; | ||
var uniqs = require('uniqs'); | ||
var uniqs = require('./uniqs')('monospace'); | ||
// Note that monospace is missing intentionally from this list; we should not | ||
// remove instances of duplicated monospace keywords, it causes the font to be | ||
// rendered smaller in Chrome. | ||
var keywords = [ | ||
@@ -8,4 +12,3 @@ 'sans-serif', | ||
'fantasy', | ||
'cursive', | ||
'monospace' | ||
'cursive' | ||
]; | ||
@@ -12,0 +15,0 @@ |
@@ -0,0 +0,0 @@ var unit = require('postcss-value-parser').unit; |
module.exports = function (value) { | ||
return value === 'normal' ? '400' : value === 'bold' ? '700' : value; | ||
}; |
{ | ||
"name": "postcss-minify-font-values", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Minify font declarations with PostCSS", | ||
@@ -32,4 +32,3 @@ "main": "index.js", | ||
"postcss": "^5.0.4", | ||
"postcss-value-parser": "^3.0.2", | ||
"uniqs": "^2.0.0" | ||
"postcss-value-parser": "^3.0.2" | ||
}, | ||
@@ -36,0 +35,0 @@ "repository": { |
@@ -0,0 +0,0 @@ # postcss-minify-font-values [![Build Status][ci-img]][ci] |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10504
3
9
222
1
- Removeduniqs@^2.0.0
- Removeduniqs@2.0.0(transitive)