mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-23 00:47:55 +00:00
31 lines
642 B
JavaScript
31 lines
642 B
JavaScript
// vite.config.js
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
root: "client",
|
|
build: {
|
|
outDir: "../build",
|
|
emptyOutDir: true,
|
|
ssrManifest: true,
|
|
rollupOptions: {
|
|
input: {
|
|
admin: path.resolve(__dirname, "client/admin/admin.jsx"),
|
|
homebrew: path.resolve(__dirname, "client/homebrew/homebrew.jsx"),
|
|
},
|
|
output: {
|
|
entryFileNames: "[name]/bundle.js",
|
|
chunkFileNames: "[name]/[name]-[hash].js",
|
|
assetFileNames: "[name]/[name].[ext]",
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
fs: {
|
|
allow: ["."],
|
|
},
|
|
},
|
|
});
|