mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-07 20:58:11 +00:00
chore: update deps
This commit is contained in:
@@ -60,18 +60,24 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||
// Load proxy configuration from .env
|
||||
proxy: createProxy(VITE_PROXY),
|
||||
},
|
||||
esbuild: {
|
||||
pure: VITE_DROP_CONSOLE ? ['console.log', 'debugger'] : [],
|
||||
},
|
||||
build: {
|
||||
minify: false,
|
||||
// target: 'es2015',
|
||||
// cssTarget: 'chrome86',
|
||||
target: 'es2015',
|
||||
cssTarget: 'chrome80',
|
||||
outDir: OUTPUT_DIR,
|
||||
terserOptions: {
|
||||
compress: {
|
||||
keep_infinity: true,
|
||||
// Used to delete console in production environment
|
||||
drop_console: VITE_DROP_CONSOLE,
|
||||
},
|
||||
},
|
||||
// minify: 'terser',
|
||||
/**
|
||||
* 当 minify=“minify:'terser'” 解开注释
|
||||
* Uncomment when minify="minify:'terser'"
|
||||
*/
|
||||
// terserOptions: {
|
||||
// compress: {
|
||||
// keep_infinity: true,
|
||||
// drop_console: VITE_DROP_CONSOLE,
|
||||
// },
|
||||
// },
|
||||
// Turning off brotliSize display can slightly reduce packaging time
|
||||
brotliSize: false,
|
||||
chunkSizeWarningLimit: 2000,
|
||||
|
Reference in New Issue
Block a user