From f77b63cb8cfa72e9187545c6a6cfa0dfdcc2bce0 Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sun, 6 Apr 2025 03:03:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20@unocss/preset-re?= =?UTF-8?q?m-to-px=20=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - pnpm-lock.yaml | 10 ---------- unocss.config.ts | 9 ++++++--- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 0e83913..a796377 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "@types/node": "^22.13.14", "@types/nprogress": "^0.2.3", "@types/three": "^0.175.0", - "@unocss/preset-rem-to-px": "66.1.0-beta.7", "@vant/auto-import-resolver": "^1.3.0", "@vitejs/plugin-vue": "^5.2.3", "@vitejs/plugin-vue-jsx": "^4.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2cf614a..5cd95fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -182,9 +182,6 @@ importers: '@types/three': specifier: ^0.175.0 version: 0.175.0 - '@unocss/preset-rem-to-px': - specifier: 66.1.0-beta.7 - version: 66.1.0-beta.7 '@vant/auto-import-resolver': specifier: ^1.3.0 version: 1.3.0 @@ -1560,9 +1557,6 @@ packages: '@unocss/preset-mini@66.1.0-beta.7': resolution: {integrity: sha512-5v9RNFTk2OMLbE45JVoYA0HtZKCDCI3j7uRAcuRLVP3O/yAd9JlP/b8ou3wvtgxHTXFEgk6Pt8dFDKPadA3Hrw==} - '@unocss/preset-rem-to-px@66.1.0-beta.7': - resolution: {integrity: sha512-ig51UnsHMar1x0N3vytHRxp7qXSlwkzk4j1rjjYCTQ05sBhZbKfu1YD+dvhTilJjPklk5kUND+At6nWgPzHHtA==} - '@unocss/preset-tagify@66.1.0-beta.7': resolution: {integrity: sha512-8eJLHiyfzwfKjqV4sIP+158h6RSTwuQ4AOC8UZij0AketU9bhFIyfOzgvFALiZBo71LFFDe1gSliZpK/eGan2g==} @@ -6054,10 +6048,6 @@ snapshots: '@unocss/extractor-arbitrary-variants': 66.1.0-beta.7 '@unocss/rule-utils': 66.1.0-beta.7 - '@unocss/preset-rem-to-px@66.1.0-beta.7': - dependencies: - '@unocss/core': 66.1.0-beta.7 - '@unocss/preset-tagify@66.1.0-beta.7': dependencies: '@unocss/core': 66.1.0-beta.7 diff --git a/unocss.config.ts b/unocss.config.ts index db06a37..110e120 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -3,12 +3,15 @@ import { defineConfig, presetAttributify, presetWind3, transformerDirectives, transformerVariantGroup } from 'unocss'; import { presetAnimations } from 'unocss-preset-animations'; // import presetChinese, { chineseTypography } from 'unocss-preset-chinese'; + import { presetShadcn } from 'unocss-preset-shadcn'; +// @unocss/preset-rem-to-px + export default defineConfig({ - // By default, `.ts` and `.js` files are NOT extracted. - // If you want to extract them, use the following configuration. - // It's necessary to add the following configuration if you use shadcn-vue or shadcn-svelte. + // 默认情况下,`.ts` 和 `.js` 文件不会被提取。 + // 如果你想提取它们,请使用以下配置。 + // 如果你使用 shadcn-vue 或 shadcn-svelte,则必须添加以下配置。 content: { pipeline: { include: [