25 lines
440 B
TypeScript
25 lines
440 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [],
|
|
build: {
|
|
outDir: "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",
|
|
},
|
|
},
|
|
});
|