20 lines
454 B
TypeScript
20 lines
454 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { viteSingleFile } from 'vite-plugin-singlefile'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), viteSingleFile()],
|
|
build: {
|
|
target: 'esnext',
|
|
assetsInlineLimit: 100000000,
|
|
chunkSizeWarningLimit: 100000000,
|
|
cssCodeSplit: false,
|
|
brotliSize: false,
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true,
|
|
},
|
|
},
|
|
},
|
|
})
|