This commit is contained in:
pplokijuhyg 2019-11-25 15:19:49 +08:00
parent e681ab91ae
commit bced64629b

View File

@ -21,6 +21,24 @@ yarn add vant
}
```
安装postcss-pxtorem
这个是
这个是将px转为rem
在package.json配置
"postcss": {
"plugins": {
"autoprefixer": {
"browsers": [
"Android >= 4.0",
"iOS >= 7"
]
},
"postcss-pxtorem": {
"rootValue": 37.5, //
"propList": [
"*"
]
}
}
},