easydiffusion/ui/frontend/build_src/vite.config.ts

25 lines
542 B
TypeScript
Raw Normal View History

2022-09-14 16:48:46 +02:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 9001,
},
build: {
// make sure everythign is in the same directory
outDir: '../dist',
rollupOptions: {
output: {
// dont hash the file names
// maybe once we update the python server?
entryFileNames: `[name].js`,
chunkFileNames: `[name].js`,
assetFileNames: `[name].[ext]`
}
}
},
})