diff options
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/vite.config.ts b/vite.config.ts index 67d242c4..a9790a35 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,31 +1,31 @@ -import { sveltekit } from '@sveltejs/kit/vite'; -import sveltekitGql from 'sveltekit-graphql/vite'; -import { defineConfig } from 'vite'; +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 - } + 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, + }, }); |