From 922daddd03ad19310358c5f941fcb91b04300249 Mon Sep 17 00:00:00 2001 From: fonghehe <331002675@qq.com> Date: Wed, 4 Jan 2023 16:40:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- postcss.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index fc41130..ec0e8b8 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite App diff --git a/postcss.config.js b/postcss.config.js index f002247..adb8601 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -18,6 +18,9 @@ module.exports = { minPixelValue: 1, // 默认值1,小于或等于1px则不进行转换 mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false replace: true, // 是否转换后直接更换属性值 + landscape: false, //是否添加根据 landscapeWidth 生成的媒体查询条件 @media (orientation: landscape) + landscapeUnit: 'rem', //横屏时使用的单位 + landscapeWidth: 1134, //横屏时使用的视口宽度 include: [], exclude: [], // 设置忽略文件,用正则做目录名匹配 customFun: ({ file }) => {