2024-05-14 06:42:25 +02:00
|
|
|
import react from "@vitejs/plugin-react";
|
2024-05-28 21:12:28 +02:00
|
|
|
import { defineConfig } from "vite";
|
2024-06-03 20:35:06 +02:00
|
|
|
import { viteStaticCopy } from "vite-plugin-static-copy";
|
2024-05-14 06:42:25 +02:00
|
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
|
|
|
|
export default defineConfig({
|
2024-06-03 20:35:06 +02:00
|
|
|
plugins: [
|
|
|
|
react({}),
|
|
|
|
tsconfigPaths(),
|
|
|
|
viteStaticCopy({
|
|
|
|
targets: [{ src: "node_modules/monaco-editor/min/vs/*", dest: "monaco" }],
|
|
|
|
}),
|
|
|
|
],
|
2024-05-14 06:42:25 +02:00
|
|
|
publicDir: "public",
|
|
|
|
build: {
|
2024-05-14 08:45:41 +02:00
|
|
|
target: "es6",
|
2024-06-03 20:35:06 +02:00
|
|
|
sourcemap: true,
|
2024-05-14 06:42:25 +02:00
|
|
|
rollupOptions: {
|
|
|
|
input: {
|
|
|
|
app: "public/index.html",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|