mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-10 22:23:48 -05:00
19 lines
473 B
TypeScript
19 lines
473 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: "./",
|
|
build: {
|
|
rollupOptions: {
|
|
// https://stackoverflow.com/q/69614671/vite-without-hash-in-filename#75344943
|
|
output: {
|
|
entryFileNames: `assets/[name].js`,
|
|
chunkFileNames: `assets/[name].js`,
|
|
assetFileNames: `assets/[name].[ext]`,
|
|
},
|
|
},
|
|
},
|
|
});
|