0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 06:48:11 +00:00
Files
homebrewery/vite.config.js
Víctor Losada Hernández 741d7762d8 this should work
2026-02-01 21:59:59 +01:00

30 lines
518 B
JavaScript

// vite.config.js
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
build: {
outDir: "build",
emptyOutDir: true,
rollupOptions: {
output: {
entryFileNames: "[name]/bundle.js",
chunkFileNames: "[name]/[name]-[hash].js",
assetFileNames: "[name]/[name].[ext]",
},
},
},
// vite.config.js
define: {
global: "window",
},
server: {
port: 8000,
fs: {
allow: ["."],
},
},
});