From 38b80d96edbfa7b69752b47db46dfdcb8e57060e Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Tue, 27 Feb 2024 21:18:32 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81:=20=E2=99=BB=EF=B8=8F=20=E6=B7=BB=E5=8A=A0postcss.con?= =?UTF-8?q?fig.js=E6=B3=A8=E9=87=8A=EF=BC=9B=E4=BF=AE=E6=94=B9package.json?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- postcss.config.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d515a25..9254036 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vue_ts_pina", + "name": "lookbroad-rem", "version": "0.1.0", "private": true, "scripts": { diff --git a/postcss.config.js b/postcss.config.js index ee0990a..9ea95f1 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -2,5 +2,12 @@ const autoprefixer = require('autoprefixer'); const px2rem = require('postcss-pxtorem'); module.exports = { - plugins: [autoprefixer(), px2rem({ rootValue: 80, unitPrecision: 5, propList: ['*'] })], + plugins: [ + autoprefixer(), + px2rem({ + rootValue: 80, // 根字体大小 + unitPrecision: 3, // 小数点位数 + propList: ['*'], + }), + ], };