2023-02-25 21:02:50 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
2023-01-29 20:27:02 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react()],
|
|
|
|
build: {
|
2023-01-29 21:14:58 +00:00
|
|
|
rollupOptions: {
|
|
|
|
output: {
|
|
|
|
entryFileNames: "resistants.js",
|
2023-02-25 21:02:50 +00:00
|
|
|
assetFileNames: ({ name }) =>
|
|
|
|
name && name.indexOf(".css") > 0
|
|
|
|
? "resistants.css"
|
|
|
|
: "assets/[name].[ext]",
|
|
|
|
},
|
2023-01-29 21:14:58 +00:00
|
|
|
},
|
2023-02-25 21:02:50 +00:00
|
|
|
outDir: "public",
|
|
|
|
},
|
|
|
|
});
|