-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
35 lines (33 loc) · 877 Bytes
/
vite.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
import preact from '@preact/preset-vite'
import { presetAttributify, presetIcons, presetUno } from 'unocss'
import Unocss from 'unocss/vite'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
const config = defineConfig({
plugins: [
preact(),
Unocss({
theme: {
fontFamily: {
sans: '"Inter", Inter var,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji',
},
},
presets: [
presetIcons({
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle',
},
}),
presetAttributify(),
presetUno(),
],
}),
],
resolve: {
alias: {
path: 'path-browserify',
},
},
})
export default config