-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathuno.config.ts
More file actions
30 lines (29 loc) · 851 Bytes
/
Copy pathuno.config.ts
File metadata and controls
30 lines (29 loc) · 851 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
/*
* @Author: June
* @Description:
* @Date: 2024-08-19 12:53:30
* @LastEditTime: 2024-10-03 11:17:28
* @LastEditors: June
* @FilePath: \element-fabric-editor\uno.config.ts
*/
import {
defineConfig,
presetAttributify,
presetUno,
transformerDirectives
} from 'unocss'
import transformerCompileClass from '@unocss/transformer-compile-class' // 将一组类编译为一个类
export default defineConfig({
content: {
pipeline: {
exclude: ["node_modules", "dist", ".git", ".husky", ".vscode", "public", "build"]
}
},
transformers: [transformerDirectives(), transformerCompileClass()],
presets: [presetUno(), presetAttributify()],
shortcuts: [
{ 'wh-full': 'w-full h-full' },
{ 'f-center': 'flex justify-center items-center' },
{ 'text-over-1': 'overflow-hidden text-ellipsis whitespace-nowrap' }
]
})