From 5d5dafd7d5cdfb29433749c11c2ba3eb5f384958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sun, 17 Mar 2024 12:08:04 +0800 Subject: [PATCH] fix(unocss): #16 --- uno.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uno.config.ts b/uno.config.ts index f733f74..d9df11c 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -28,10 +28,12 @@ if (!isMp) { // 支持css class属性化,eg: `` presets.push(presetAttributify()) } +if (!isH5) { + presets.push(presetRemRpx()) +} export default defineConfig({ presets: [ presetApplet({ enable: !isH5 }), - presetRemRpx(), ...presets, // 支持图标,需要搭配图标库,eg: @iconify-json/carbon, 使用 `