From c96de81c9d73da549bc4bb05ab98ed9a90a363d0 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Thu, 6 Nov 2025 09:54:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=87=B33.18.11=E5=B9=B6=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 448446e..84a1298 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "unibest", "type": "module", - "version": "3.18.10", - "unibest-version": "3.18.10", - "update-time": "2025-10-29", + "version": "3.18.11", + "unibest-version": "3.18.11", + "update-time": "2025-11-06", "packageManager": "pnpm@10.10.0", "description": "unibest - 最好的 uniapp 开发模板", "generate-time": "用户创建项目时生成", From a8b8d4b2369353ed66e1133be6ae601003e009ed Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Thu, 6 Nov 2025 10:01:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(unocss):=20=E7=A7=BB=E9=99=A4content?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E8=A7=A3=E5=86=B3windows=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/uno.config.ts b/uno.config.ts index d291696..2c0c158 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -92,24 +92,26 @@ export default defineConfig({ '3xs': ['18rpx', '26rpx'], }, }, - content: { - /** - * 解决小程序报错 `./app.wxss(78:2814): unexpected unexpected at pos 5198` - * 为什么同时使用include和exclude?虽然看起来多余,但同时配置两者是一种常见的 `防御性编程` 做法。 - 1. 结构变化保障 : 如果未来项目结构发生变化,某些排除目录可能被移动到包含路径下,exclude配置可以确保它们仍被排除 - 2. 明确性 : 明确列出要排除的目录使配置意图更加清晰 - 3. 性能优化 : 避免处理不必要的文件,提高构建性能 - 4. 防止冲突 : 排除第三方库和构建输出目录,避免潜在的CSS冲突 - */ - pipeline: { - exclude: [ - 'node_modules/**/*', - 'public/**/*', - 'dist/**/*', - ], - include: [ - './src/**/*', - ], - }, - }, + // windows 系统会报错:[plugin:unocss:transformers:pre] Cannot overwrite a zero-length range - use append Left or prependRight instead. + // 去掉下面的就正常了 + // content: { + // /** + // * 解决小程序报错 `./app.wxss(78:2814): unexpected unexpected at pos 5198` + // * 为什么同时使用include和exclude?虽然看起来多余,但同时配置两者是一种常见的 `防御性编程` 做法。 + // 1. 结构变化保障 : 如果未来项目结构发生变化,某些排除目录可能被移动到包含路径下,exclude配置可以确保它们仍被排除 + // 2. 明确性 : 明确列出要排除的目录使配置意图更加清晰 + // 3. 性能优化 : 避免处理不必要的文件,提高构建性能 + // 4. 防止冲突 : 排除第三方库和构建输出目录,避免潜在的CSS冲突 + // */ + // pipeline: { + // exclude: [ + // 'node_modules/**/*', + // 'public/**/*', + // 'dist/**/*', + // ], + // include: [ + // './src/**/*', + // ], + // }, + // }, })