-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuno.config.ts
More file actions
34 lines (31 loc) · 807 Bytes
/
Copy pathuno.config.ts
File metadata and controls
34 lines (31 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {
defineConfig,
presetIcons,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
import presetWeApp from "unocss-preset-weapp";
import presetChinese from "unocss-preset-chinese";
import { transformerAttributify, transformerClass } from "unocss-preset-weapp/transformer";
export default defineConfig({
presets: [
presetIcons({
scale: 1.2,
warn: true,
}),
presetChinese(),
/**
* 微信小程序预设
* @see https://github.com/MellowCo/unocss-preset-weapp
*/
presetWeApp(),
],
shortcuts: [
],
transformers: [
transformerClass(),
transformerAttributify(), // 开启属性模式(支持小程序)
transformerDirectives(), // 启用 @apply 功能
transformerVariantGroup(), // 启用 () 分组功能
],
});