From 95214818ff69282a5abe0292d6a494d05065d389 Mon Sep 17 00:00:00 2001 From: Dmitry Karpunin Date: Tue, 23 Aug 2016 13:16:52 +0300 Subject: [PATCH] Update to v0.0.3 --- index.js | 8 +------- package.json | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 24c0521..79dfe1e 100755 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ var pxRegex = /"[^"]+"|'[^']+'|url\([^\)]+\)|(\d*\.?\d+)px/ig; var defaults = { viewportWidth: 320, - viewportHeight: 568, + viewportHeight: 568, // not now used; TODO: need for different units and math for different properties unitPrecision: 5, viewportUnit: 'vw', selectorBlackList: [], @@ -62,12 +62,6 @@ function toFixed(number, precision) { return Math.round(wholeNumber / 10) * 10 / multiplier; } -//function declarationExists(decls, prop, value) { -// return decls.some(function (decl) { -// return (decl.prop === prop && decl.value === value); -// }); -//} - function blacklistedSelector(blacklist, selector) { if (typeof selector !== 'string') return; return blacklist.some(function (regex) { diff --git a/package.json b/package.json index b0af222..c72b57b 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "postcss-px-to-viewport", "description": "A CSS post-processor that converts px to viewport units (vw, vh, vmin, vmax).", - "version": "0.0.2", + "version": "0.0.3", "author": "Dmitry Karpunin ", "license": "MIT", "repository": {