From 69a8e813d6d58f176b1ae3518e00aaa671db7ed5 Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Tue, 12 Nov 2024 01:13:29 +0800 Subject: [PATCH] feat: improve tempad dev plugin --- plugin/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/index.ts b/plugin/index.ts index aa48780..5b31357 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -3,13 +3,13 @@ import { definePlugin } from '@tempad-dev/plugins' import { transformToAtomic } from '../core/index' export default definePlugin({ - name: 'fubukicss', + name: '@fubukicss/unocss', code: { css: { - title: 'unocss', - lang: 'rust' as 'css', - transform({ style }) { - return transformToAtomic(style, { engine: 'unocss', isRem: true, prefix: '' }).uno + title: 'UnoCSS', + lang: 'text' as 'css', + transform({ style, options: { useRem } }) { + return transformToAtomic(style, { engine: 'unocss', isRem: useRem, prefix: '' }).uno }, }, js: false,