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