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