vite/playground/preload/vite.config.ts

26 lines
429 B
TypeScript

import { defineConfig } from 'vite'
export default defineConfig({
build: {
outDir: 'dist/normal',
minify: 'terser',
terserOptions: {
format: {
beautify: true,
},
compress: {
passes: 3,
},
},
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('chunk.js')) {
return 'chunk'
}
},
},
},
},
})