From 68d537bce1d7a563865cce8b2336aad1d7af30dc Mon Sep 17 00:00:00 2001 From: zhaoguoqiang <849348323@qq.com> Date: Wed, 18 Aug 2021 15:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E9=85=8Dvant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postcss.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index ba96365..56c443a 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -4,8 +4,7 @@ const unit = require('./src/config/translatedUnit_server'); module.exports = ({ file }) => { - // const designWidth = file.dirname.includes(path.join('node_modules', 'vant')) ? 350 : 750; - const designWidth = file.dirname.includes('node_modules/vant') ? 375 : 750; + const designWidth = file.dirname.includes(path.join('node_modules', 'vant')) ? 375 : 750; return { plugins: { autoprefixer: {}, @@ -13,7 +12,7 @@ module.exports = ({ unitToConvert: "px", viewportWidth: designWidth, propList: ["*"], - unitPrecision: 3, // 转换后的精度,即小数点位数 + unitPrecision: 4, // 转换后的精度,即小数点位数 viewportUnit: "vw", fontViewportUnit: "vw", selectorBlackList: [],