monofile/vite.config.ts
May f441e06a21 Port client to TypeScript
Co-authored-by: Jack W. <Jack5079@users.noreply.github.com>
2024-03-27 21:47:33 -07:00

22 lines
630 B
TypeScript

import { defineConfig } from "vite"
import { svelte } from "@sveltejs/vite-plugin-svelte"
import autoPreprocess from "svelte-preprocess"
import { resolve } from "path"
export default defineConfig({
root: "./src",
build: {
outDir: "../dist",
assetsDir: "static/vite",
rollupOptions: {
input: {
main: resolve(__dirname, "src/index.html"),
download: resolve(__dirname, "src/download.html"),
error: resolve(__dirname, "src/error.html"),
},
},
},
plugins: [svelte({
preprocess: autoPreprocess()
})],
})