monofile/vite.config.mjs
Jack W. 6220cd8b0f
refactor: ♻️ Use Vite instead of Rollup
Soon: Hono instead of Express
2023-10-24 17:18:36 -04:00

19 lines
541 B
JavaScript

import { defineConfig } from "vite"
import { svelte } from "@sveltejs/vite-plugin-svelte"
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({})],
})