核电App
This commit is contained in:
20
hd-glasses-app/postcss.config.js
Normal file
20
hd-glasses-app/postcss.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
"postcss-pxtorem": {
|
||||
// 设计稿 375:37.5
|
||||
// 设计稿:750:75
|
||||
// Vant 是基于 375
|
||||
rootValue: 75, // ps设计图纸宽度为750px时 就写上面的比例75 设计稿宽度的1/10
|
||||
// rootValue根据设计稿宽度除以10进行设置
|
||||
propList: ["*"],
|
||||
selectorBlackList: ['van',"ol"],
|
||||
'postcss-px2rem-exclude': {
|
||||
remUnit: 16,
|
||||
propList: ['*'],
|
||||
exclude: /aaa|bbb/i //排除转换aaa 或者 bbb文件夹下匹配到的文件
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user