Browse Source

Merge branch 'guoqiang' into test

test
zhaoguoqiang 3 years ago
parent
commit
8c04d10c70
  1. 5
      postcss.config.js

5
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: [],

Loading…
Cancel
Save