timetracker/vite.config.js

30 lines
569 B
JavaScript
Raw Normal View History

2023-01-24 19:21:43 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
root: resolve("./src"),
server: {
host: "localhost",
port: 3000,
open: false,
watch: {
usePolling: true,
disableGlobbing: false,
},
},
build: {
outDir: resolve("./static/dist"),
rollupOptions: {
input: {
index: resolve("./src/main.jsx"),
},
},
modulePreload: {
polyfill: true,
},
},
plugins: [react()],
});