Files
im-system/hd-glasses-app/postcss.config.js
2023-10-16 09:48:54 +08:00

21 lines
647 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": {
// 设计稿 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文件夹下匹配到的文件
}
}
}
}