aishandong/chizhou_h5/postcss.config.js
2025-04-29 09:38:12 +08:00

16 lines
621 B
Vue
Raw Permalink 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: [
require("autoprefixer")({
// 配置使用 autoprefixer
overrideBrowserslist: ["last 15 versions"]
}),
require("postcss-pxtorem")({
//结果为:设计稿元素尺寸 / 32 (一般750px的设计稿的根元素大小设置32)比如元素宽320px,最终页面会换算成 10rem
rootValue: 37.5,
// selectorBlackList: ['weui', 'mu'], // 忽略转换正则匹配项
propList: ["*"],
exclude: /node_modules/
}),
],
};