mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
21 lines
369 B
TypeScript
21 lines
369 B
TypeScript
import { type UserConfig } from 'vite';
|
|
|
|
const commonConfig: UserConfig = {
|
|
server: {
|
|
host: true,
|
|
},
|
|
esbuild: {
|
|
drop: ['console', 'debugger'],
|
|
},
|
|
build: {
|
|
reportCompressedSize: false,
|
|
chunkSizeWarningLimit: 1500,
|
|
rollupOptions: {
|
|
// TODO: Prevent memory overflow
|
|
maxParallelFileOps: 3,
|
|
},
|
|
},
|
|
};
|
|
|
|
export { commonConfig };
|