simplify ui build
This commit is contained in:
parent
00023ba3e9
commit
adc73e4fa6
1 changed files with 6 additions and 8 deletions
|
|
@ -4,13 +4,13 @@ import { viteSingleFile } from "vite-plugin-singlefile";
|
|||
import { resolve } from "path";
|
||||
|
||||
// Get the entry from environment variable, default to ui-react
|
||||
const entry = process.env.VITE_ENTRY || "ui-react";
|
||||
const uiPath = process.env.UI;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), viteSingleFile()],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: resolve(__dirname, `${entry}.html`),
|
||||
input: uiPath,
|
||||
},
|
||||
outDir: `dist`,
|
||||
emptyOutDir: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue