postcss-px2rpx
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,3 +5,3 @@ var postcss = require('postcss'); | ||
opts = opts || {}; | ||
var timesBigger = opts.times || 2; | ||
var times = opts.times || 0.5; | ||
@@ -17,3 +17,3 @@ // Work with options here | ||
decl.value = val.replace(/(\d)px/g, function (match, num) { | ||
return num * timesBigger + 'rpx'; | ||
return num * times + 'rpx'; | ||
}); | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "postcss-px2rpx", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "PostCSS plugin for converting px values (adapting to iPhone 6) to Weapp's rpx values.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8443
18
183