forked from LKing12/Preso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
45 lines (42 loc) · 1.16 KB
/
svelte.config.js
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
44
45
import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
import UnoCss from 'unocss/vite'
import { extractorSvelte } from '@unocss/core'
import presetIcons from '@unocss/preset-icons'
import presetAttributify from '@unocss/preset-attributify'
import presetUno from '@unocss/preset-uno'
import presetWebFonts from '@unocss/preset-web-fonts'
import { isoImport } from 'vite-plugin-iso-import'
const config = {
preprocess: preprocess(),
kit: {
adapter: adapter(),
vite: {
plugins: [
isoImport(),
UnoCss({
extractors: [extractorSvelte],
shortcuts: {},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetWebFonts({
provider: 'google', // default provider
fonts: {
// these will extend the default theme
sans: 'Inter',
},
})
],
}),
],
},
},
}
export default config