zbAdmin/postcss.config.js
2025-02-27 20:10:10 +08:00

20 lines
509 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: {
autoprefixer: {},
"postcss-pxtorem": {
// 判断是否是vant的文件 如果是就使用 37.5为根节点字体大小
rootValue({ file }) {
return 192;
},
// 配置的文件尺寸需要转化为rem *表示所有的都要转化
// 需要转换的css属性默认*全部
propList: ["*"],
exclude: e => {
if (!/src(\\|\/)views(\\|\/)largeScreen/.test(e)) {
return true;
}
}
}
}
};