-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
39 lines (38 loc) · 912 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
36
37
38
39
import {
presetTypography,
presetUno,
presetIcons,
presetWebFonts,
} from 'unocss'
import UnoCSS from 'unocss/vite'
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'
import extractorSvelte from '@unocss/extractor-svelte'
import TailwindCSS from 'tailwindcss'
// @ts-expect-error ts(7016)
import LightningCSS from 'postcss-lightningcss'
export default defineConfig({
css: {
postcss: {
plugins: [TailwindCSS(), LightningCSS()],
},
},
plugins: [
UnoCSS({
content: { pipeline: { include: [/\.svelte$/, /\.md?$/, /\.ts$/] } },
extractors: [extractorSvelte()],
presets: [
presetUno(),
presetIcons(),
presetTypography(),
presetWebFonts({
provider: 'google',
fonts: {
sans: ['Inter:100,400,500,600,700'],
},
}),
],
}),
sveltekit(),
],
})