From 0456d6e357fa12b903a486431f64720f18683671 Mon Sep 17 00:00:00 2001 From: Lawrence <1934378145@qq.com> Date: Thu, 21 Jan 2021 19:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=AD=97=E4=BD=93=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/.postcssrc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web_src/.postcssrc.js b/web_src/.postcssrc.js index eee3e92d..b04dd5a9 100644 --- a/web_src/.postcssrc.js +++ b/web_src/.postcssrc.js @@ -5,6 +5,13 @@ 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 + // propList: ['*'], // 转化全部 + // propList: ['*','!border'], //转化全部,除了border属性 + // selectorBlackList: ['body'] // 过滤掉.am-开头的class,不进行rem转换 + } } }