From cb56f9b7baceea1398201a37be3641d23c1d14bb Mon Sep 17 00:00:00 2001 From: wangqiao Date: Mon, 1 Sep 2025 11:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=8Em=E6=94=B9=E4=B8=BAmobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index f5fd02f..98b0ea6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -41,10 +41,10 @@ export default defineNuxtConfig({ minPixelValue: 1, // 默认值1,小于或等于1px则不进行转换 mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false replace: true, // 是否转换后直接更换属性值 - exclude: [/node_modules/, /^(?!.*\/pages\/m\/).*$/], // 排除node_modules和非pages/m目录下的文件 + exclude: [/node_modules/, /^(?!.*\/pages\/mobile\/).*$/], // 排除node_modules和非pages/m目录下的文件 landscape: false, // 是否处理横屏情况 // 只转换pages下的m文件 - include: [/pages\/m/], + include: [/pages\/mobile/], }), ], },