-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
37 lines (36 loc) · 886 Bytes
/
vite.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
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import unocss from '@unocss/vite';
import unocssPresetIcons from '@unocss/preset-icons';
import svelte_preprocess from 'svelte-preprocess';
export default defineConfig({
resolve: {
alias: {
src: '/src',
lib: '/src/lib',
pages: '/src/pages',
plugins: '/src/plugins',
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.svelte'],
},
plugins: [
svelte({
preprocess: [svelte_preprocess()],
}),
unocss({
presets: [
unocssPresetIcons({
scale: 2,
prefix: 'i-',
mode: 'auto',
warn: true,
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle',
},
}),
],
}),
],
publicDir: './src/assets',
});