Commit 0456d6e357fa12b903a486431f64720f18683671
1 parent
ff7ecd27
支持字体大小调整,方便扩展功能
Showing
1 changed file
with
8 additions
and
1 deletions
web_src/.postcssrc.js
| ... | ... | @@ -5,6 +5,13 @@ module.exports = { |
| 5 | 5 | "postcss-import": {}, |
| 6 | 6 | "postcss-url": {}, |
| 7 | 7 | // to edit target browsers: use "browserslist" field in package.json |
| 8 | - "autoprefixer": {} | |
| 8 | + "autoprefixer": {}, | |
| 9 | + 'postcss-pxtorem': { | |
| 10 | + rootValue: 24, | |
| 11 | + propList: ['font-size'] // 只转化font-size | |
| 12 | + // propList: ['*'], // 转化全部 | |
| 13 | + // propList: ['*','!border'], //转化全部,除了border属性 | |
| 14 | + // selectorBlackList: ['body'] // 过滤掉.am-开头的class,不进行rem转换 | |
| 15 | + } | |
| 9 | 16 | } |
| 10 | 17 | } | ... | ... |