tijl.dev-core/vite.config.ts
tijl 092ee796bd
Some checks failed
build / build (push) Failing after 0s
reorganize
2024-08-21 23:43:54 +02:00

25 lines
451 B
TypeScript

import { defineConfig } from "vite";
export default defineConfig({
plugins: [],
build: {
outDir: "web/assets/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",
},
},
});