Files
kdemo/postcss.config.js
nicomacbookpro fb2b8515ee first commit
2025-08-20 15:03:58 +08:00

21 lines
679 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": {
rootValue: 192, // 设计稿1920px → 192设计稿375px → 37.5
propList: ["*"],
// selectorBlackList: [/.norem/], // 过滤不需要转换的class
selectorBlackList: [], // 黑名单,忽略某些类
replace: true,
// include: /node_modules\/element-ui/,
// rootValue: 16, // 可以根据需要修改
// unitPrecision: 5, // 转换精度
// propList: ["*"], // 所有属性都转换
// selectorBlackList: [], // 黑名单,忽略某些类
// replace: true,
// mediaQuery: false,
// minPixelValue: 0,
},
},
};