blob: 67d242c4768b1beee7fbdddad31c3312b3edb1a8 (
plain) (
blame)
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
|
import { sveltekit } from '@sveltejs/kit/vite';
import sveltekitGql from 'sveltekit-graphql/vite';
import { defineConfig } from 'vite';
// import { webSocketServer } from '$lib/websocket';
export default defineConfig({
plugins: [sveltekitGql(), sveltekit() /* webSocketServer */],
server: {
// https: {
// key: Bun.env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168')
// ? await Bun.file(`${import.meta.dir}/certificates/key.pem`).text()
// : undefined,
// cert: Bun.env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168')
// ? await Bun.file(`${import.meta.dir}/certificates/certificate.pem`).text()
// : undefined
// },
proxy: {}
},
css: {
devSourcemap: false,
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
build: {
cssCodeSplit: true,
minify: true
}
});
|