resistants/vite.config.ts

18 lines
433 B
TypeScript

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