template-react-app/vite.config.js
2023-12-08 15:39:08 +01:00

16 lines
328 B
JavaScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
return defineConfig({
plugins: [react()],
build: {
watch: {
clearScreen: true,
},
},
});
};