mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-28 16:38:10 +00:00
vite config
This commit is contained in:
30
vite.config.js
Normal file
30
vite.config.js
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
// 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: ["."],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user