/ vite.config.js
vite.config.js
 1  import { resolve } from "node:path";
 2  import { defineConfig } from "vite";
 3  import { svelte } from "@sveltejs/vite-plugin-svelte";
 4  import { viteStaticCopy } from "vite-plugin-static-copy";
 5  
 6  export default defineConfig({
 7    plugins: [
 8      svelte(),
 9      viteStaticCopy({
10        targets: [{ src: "article/rss.xml", dest: "." }],
11      }),
12    ],
13    rollupDedupe: ["svelte"],
14    build: {
15      outDir: "dist",
16      emptyOutDir: true,
17      rollupOptions: {
18        input: {
19          home: resolve(__dirname, "index.html"),
20          404: resolve(__dirname, "404.html"),
21        },
22      },
23    },
24  });