mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
26 lines
429 B
TypeScript
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'
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|