postcss-pxtransform 3.5.1 → 3.5.2-aplha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = postcss.plugin('postcss-pxtransform', function (options = {}) {
|
|
|
41
41
|
options = Object.assign({}, DEFAULT_WEAPP_OPTIONS, options)
|
|
42
42
|
|
|
43
43
|
const transUnits = ['px']
|
|
44
|
-
const baseFontSize = options.baseFontSize
|
|
44
|
+
const baseFontSize = options.baseFontSize || options.minRootSize >= 1 ? options.minRootSize : 20
|
|
45
45
|
const designWidth = input => typeof options.designWidth === 'function'
|
|
46
46
|
? options.designWidth(input)
|
|
47
47
|
: options.designWidth
|