安装
npm install postcss-pxtorem --save-dev
然后在package.json中添加
rootValue是 多少px转化为 1rem
"postcss": {
"plugins": {
"autoprefixer": {},
"postcss-pxtorem": {
"rootValue": 37.5,
"propList": ["*"]
}
}
}
安装
npm install postcss-pxtorem --save-dev
然后在package.json中添加
rootValue是 多少px转化为 1rem
"postcss": {
"plugins": {
"autoprefixer": {},
"postcss-pxtorem": {
"rootValue": 37.5,
"propList": ["*"]
}
}
}