-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
41 lines (39 loc) · 1.01 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
import { paraglide } from '@inlang/paraglide-sveltekit/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { sveltekit } from '@sveltejs/kit/vite';
import browserslist from 'browserslist';
import { browserslistToTargets } from 'lightningcss';
import Icons from 'unplugin-icons/vite';
import { defineConfig } from 'vite';
const targets = browserslistToTargets(
browserslist('defaults, not IE 11, not IE_Mob 11, not OperaMini all')
);
export default defineConfig({
build: {
cssMinify: 'lightningcss'
},
css: {
devSourcemap: true,
lightningcss: {
targets
},
transformer: 'lightningcss'
},
plugins: [
enhancedImages(),
paraglide({
outdir: './src/paraglide',
project: './project.inlang'
}),
sveltekit(),
Icons({
autoInstall: true,
compiler: 'svelte'
})
],
server: {
fs: {
allow: ['./master.css.ts']
}
}
});