resistants/vite.config.ts

21 lines
488 B
TypeScript

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