tijl.dev-core/vite.config.ts

25 lines
451 B
TypeScript
Raw Normal View History

2024-08-19 22:32:43 +02:00
import { defineConfig } from "vite";
export default defineConfig({
plugins: [],
build: {
2024-08-21 23:43:54 +02:00
outDir: "web/assets/static/js", // Output directory for compiled JS
2024-08-19 22:32:43 +02:00
rollupOptions: {
output: {
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
assetFileNames: "[name].[ext]",
},
input: {
interactive: "web/lib/index.ts",
},
},
2024-08-21 15:43:24 +02:00
},
server: {
port: 3001,
proxy: {
"/api": "http://localhost:3000",
2024-08-19 22:32:43 +02:00
},
},
});