Files
xiaomubiao-master/postcss.config.cjs
2026-05-22 16:13:20 +08:00

13 lines
457 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
plugins: {
"postcss-pxtorem": {
// 把px单位换算成rem单位
rootValue: 192, //换算基数,
unitPrecision: 20, //允许REM单位增长到的十进制数字,小数点后保留的位数。
propList: ["*"],
selectorBlackList: [], //要忽略并保留为px的选择器本项目我是用的vant ui框架所以忽略他
minPixelValue: 1, //设置要替换的最小像素值
},
},
};