Files
molecular_frontend/vite.config.ts
DeOwl 8449da8373 added full keycloak support. Partial Quantum backend support, Moved to
.env for config

- removed the globalVars variable for a lack of need
- changed the documentation page for test of multilevel navigation
- added machines page to route
- cleaned up dependencies for build
- changed config to split imports
2026-04-26 16:25:02 +03:00

34 lines
781 B
TypeScript
Executable File

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import dotenv from "dotenv";
dotenv.config();
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
server: {
host: process.env.VITE_HOSTNAME,
port: Number(process.env.VITE_PORT),
},
preview: {
port: Number(process.env.VITE_PORT),
},
base: "/" + process.env.VITE_BASE_PATH,
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes("node_modules")) {
return id
.toString()
.split("node_modules/")[1]
.split("/")[0]
.toString();
}
},
},
},
},
});