chore: update deps

This commit is contained in:
vben
2022-01-24 23:30:26 +08:00
parent 4e4ce944bc
commit ecc2135b5e
5 changed files with 477 additions and 487 deletions

View File

@@ -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,