diff --git a/web_src/.postcssrc.js b/web_src/.postcssrc.js index eee3e92d..406b4d24 100644 --- a/web_src/.postcssrc.js +++ b/web_src/.postcssrc.js @@ -5,6 +5,10 @@ module.exports = { "postcss-import": {}, "postcss-url": {}, // to edit target browsers: use "browserslist" field in package.json - "autoprefixer": {} + "autoprefixer": {}, + 'postcss-pxtorem': { + rootValue: 24, + propList: ['font-size'] // 只转化font-size + } } }