-
Notifications
You must be signed in to change notification settings - Fork 16
/
uno.config.ts
43 lines (42 loc) · 1.07 KB
/
uno.config.ts
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
35
36
37
38
39
40
41
42
43
import transformerAttributifyJsx from '@unocss/transformer-attributify-jsx'
import { defineConfig, presetAttributify, presetIcons, presetUno, transformerDirectives } from 'unocss'
import { presetMine } from './src/styles/presetsMine'
export default defineConfig({
presets: [
presetIcons({
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetAttributify(),
presetUno({
extract: {
include: [
'src/**/*.{vue,html,jsx,tsx,vine.ts}',
'electronWindows/**/*.{vue,html,jsx,tsx,vine.ts}',
],
exclude: ['node_modules', '.git'],
},
}),
presetMine,
],
content: {
pipeline: {
include: [
'src/**/*.vine.ts',
'electronWindows/**/*.vine.ts',
'src/**/*.vue',
'electronWindows/**/*.vue',
'src/**/*.tsx',
'electronWindows/**/*.tsx',
],
},
},
transformers: [
transformerDirectives({
applyVariable: ['--at-apply', '--uno-apply', '--uno'],
}),
transformerAttributifyJsx(),
],
})