From 9d3962e816e4850795ab26ec7533f5e3a7a70b29 Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Tue, 29 Nov 2022 14:11:19 +0800 Subject: [PATCH] =?UTF-8?q?perf-unocss.config.js=20=E9=85=8D=E7=BD=AE,?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unocss.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unocss.config.js b/unocss.config.js index e9332c4..7256f73 100644 --- a/unocss.config.js +++ b/unocss.config.js @@ -4,7 +4,7 @@ * @link unocss-preset-weapp: https://github.com/MellowCo/unocss-preset-weapp * */ -import { defineConfig, presetAttributify, presetIcons } from 'unocss'; +import { defineConfig, presetIcons } from 'unocss'; import presetWeapp from 'unocss-preset-weapp'; import { transformerAttributify, @@ -37,6 +37,7 @@ export default defineConfig({ whRpx: true, transform: true, platform: 'uniapp', + transformRules, }), presetIcons({ scale: 1.2, @@ -51,13 +52,11 @@ export default defineConfig({ ], theme: {}, transformers: [ - // options 见 https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify transformerAttributify({ classPrefix: prefix, transformRules, nonValuedAttribute: true, }), - // options 见 https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass transformerClass({ transformRules, }),