mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 06:48:11 +00:00
reworked asset generation
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "path";
|
||||
import { generateAssetsPlugin } from "./vitePlugins/generateAssetsPlugin.js";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [react(), generateAssetsPlugin()],
|
||||
build: {
|
||||
outDir: "build",
|
||||
emptyOutDir: true,
|
||||
emptyOutDir: false,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: "[name]/bundle.js",
|
||||
@@ -16,7 +17,6 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
// vite.config.js
|
||||
define: {
|
||||
global: "window",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user