mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-17 17:11:30 +02:00
inital push
This commit is contained in:
24
ui/frontend/build_src/vite.config.ts
Normal file
24
ui/frontend/build_src/vite.config.ts
Normal file
@ -0,0 +1,24 @@
|
||||
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]`
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
})
|
Reference in New Issue
Block a user