Showing
1 changed file
with
17 additions
and
0 deletions
postcss.config.js
0 → 100644
1 | +const postImport = require('postcss-import'); | ||
2 | +const autoprefixer = require('autoprefixer'); | ||
3 | +const pxtorem = require('postcss-pxtorem'); | ||
4 | + | ||
5 | +module.exports = { | ||
6 | + plugins: [ | ||
7 | + postImport({}), | ||
8 | + pxtorem({ | ||
9 | + rootValue: 40, | ||
10 | + unitPrecision: 5, // 保留5位小数字 | ||
11 | + minPixelValue: 2, // 小于 2 时,不转换 | ||
12 | + selectorBlackList: ['.fix-ios-top'], // 选择器黑名单,可以使用正则 | ||
13 | + propWhiteList: [] // 属性名称为空,表示替换所有属性的值 | ||
14 | + }), | ||
15 | + autoprefixer() | ||
16 | + ] | ||
17 | +}; |
-
Please register or login to post a comment