Commit fc3e633d627a17dcbd2f450fc301faf586027f72
1 parent
2c47c8c8
增加页面字体调整选项,增加功能腾出空间
Showing
1 changed file
with
5 additions
and
1 deletions
web_src/.postcssrc.js
| @@ -5,6 +5,10 @@ module.exports = { | @@ -5,6 +5,10 @@ module.exports = { | ||
| 5 | "postcss-import": {}, | 5 | "postcss-import": {}, |
| 6 | "postcss-url": {}, | 6 | "postcss-url": {}, |
| 7 | // to edit target browsers: use "browserslist" field in package.json | 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 | + } | ||
| 9 | } | 13 | } |
| 10 | } | 14 | } |