resistants/vite.config.ts

20 lines
451 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
output: {
entryFileNames: "resistants.js",
assetFileNames: ({ name }) =>
name && name.indexOf(".css") > 0
? "resistants.css"
: "assets/[name].[ext]",
},
},
outDir: "public",
},
});