This commit is contained in:
+10
-1
@@ -1,6 +1,7 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { execSync } from 'child_process';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
function getAppVersion(): string {
|
||||
try {
|
||||
@@ -21,7 +22,15 @@ export default defineConfig({
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(getAppVersion()),
|
||||
},
|
||||
build: { outDir: 'dist' },
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, 'index.html'),
|
||||
appHarness: resolve(__dirname, 'app-harness.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:9876',
|
||||
|
||||
Reference in New Issue
Block a user