tijl.dev-core/vite.config.ts
tijl 5693a59784
All checks were successful
build / build (push) Successful in 33s
updates
2024-08-22 12:57:38 +02:00

25 lines
444 B
TypeScript

import { defineConfig } from "vite";
export default defineConfig({
plugins: [],
build: {
outDir: "web/static/js", // Output directory for compiled JS
rollupOptions: {
output: {
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
assetFileNames: "[name].[ext]",
},
input: {
interactive: "web/lib/index.ts",
},
},
},
server: {
port: 3001,
proxy: {
"/api": "http://localhost:3000",
},
},
});