Initial commit
This commit is contained in:
12
postcss.config.cjs
Normal file
12
postcss.config.cjs
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
"postcss-pxtorem": {
|
||||
// 把px单位换算成rem单位
|
||||
rootValue: 192, //换算基数,
|
||||
unitPrecision: 20, //允许REM单位增长到的十进制数字,小数点后保留的位数。
|
||||
propList: ["*"],
|
||||
selectorBlackList: [], //要忽略并保留为px的选择器,本项目我是用的vant ui框架,所以忽略他
|
||||
minPixelValue: 1, //设置要替换的最小像素值
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user