mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-26 23:46:28 -08:00
23 lines
691 B
TypeScript
23 lines
691 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"),
|
|
reset: resolve(__dirname, "src/reset.html"),
|
|
},
|
|
},
|
|
},
|
|
plugins: [svelte({
|
|
preprocess: autoPreprocess()
|
|
})],
|
|
})
|