EMS2.0-Documents/1.源代码/APP源代码/IEMS-APP/.postcssrc.js

32 lines
931 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: {
// 兼容浏览器,添加前缀
'autoprefixer': {
overrideBrowserslist: [
"Android 4.1",
"iOS 7.1",
"Chrome > 31",
"ff > 31",
"ie >= 8"
//'last 10 versions', // 所有主流浏览器最近10版本用
],
// grid: true
},
"postcss-pxtorem": {
rootValue: 32, //结果为:设计稿元素尺寸/75设计稿宽 750,最终页面会换算成 10rem
unitPrecision: 5, // 允许REM单位增长的十进制数
propList: ["*"],
selectorBlackList: [
".el-",
".van-",
".zx-",
// ".ig-",
// ".mt-",
// ".mint-",
// ".range-"
], //数组要忽略的选择器并保留为px
minPixelValue: 2 // (数字)设置要替换的最小像素值 解决 1px 问题
}
}
};