2023-10-24 14:18:36 -07:00
|
|
|
import { defineConfig } from "vite"
|
|
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte"
|
2024-03-27 21:47:33 -07:00
|
|
|
import autoPreprocess from "svelte-preprocess"
|
2023-10-24 14:18:36 -07:00
|
|
|
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"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-27 21:47:33 -07:00
|
|
|
plugins: [svelte({
|
|
|
|
preprocess: autoPreprocess()
|
|
|
|
})],
|
2023-10-24 14:18:36 -07:00
|
|
|
})
|