17 lines
410 B
TypeScript
17 lines
410 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"
|
|
}
|
|
})
|