-
Notifications
You must be signed in to change notification settings - Fork 3k
/
vite.config.ts
42 lines (41 loc) · 1.06 KB
/
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
36
37
38
39
40
41
42
import { defineConfig } from "vite"
import unocss from "unocss/vite"
import {
presetUno,
presetIcons,
presetTypography,
transformerDirectives,
transformerVariantGroup
} from "unocss"
import solidPlugin from "vite-plugin-solid"
import tsconfigPaths from "vite-tsconfig-paths"
import nitro from "vite-plugin-with-nitro"
export default defineConfig({
envPrefix: "CLIENT_",
plugins: [
unocss({
mergeSelectors: false,
transformers: [transformerDirectives(), transformerVariantGroup()],
presets: [
presetUno(),
presetTypography({
cssExtend: {
":not(pre) > code::before,:not(pre) > code::after": {
content: ""
}
}
}),
presetIcons()
],
shortcuts: {
"input-box":
"max-w-150px ml-1em px-1 text-slate-7 dark:text-slate rounded-sm bg-slate bg-op-15 focus:(bg-op-20 ring-0 outline-none)"
}
}),
solidPlugin(),
tsconfigPaths(),
nitro({
preset: process.env.VERCEL ? "vercel-edge" : "node-server",
})
],
})