mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-25 13:26:17 +00:00
perf: Refactor vite configuration
This commit is contained in:
20
internal/vite-config/src/config/common.ts
Normal file
20
internal/vite-config/src/config/common.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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 };
|
Reference in New Issue
Block a user