From 840ab94d630ed83e6920ed33e2081d4767efd03c Mon Sep 17 00:00:00 2001 From: zyronon Date: Thu, 28 Mar 2024 17:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4vite=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4vercel?= =?UTF-8?q?=E5=92=8Cnetlify=E6=97=A0=E6=B3=95=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 78 +++++++++++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9b80af9..b01e6dc 100644 --- a/vite.config.js +++ b/vite.config.js @@ -61,45 +61,45 @@ export default defineConfig({ } ], }), - viteCompression({ - verbose: false, - disable: false, - threshold: 10240, - algorithm: 'brotliCompress', - }), - viteCompression({ - verbose: false, - disable: false, - algorithm: 'gzip', - threshold: 10240, - }), - viteImagemin({ - gifsicle: { - optimizationLevel: 7, - interlaced: false, - }, - optipng: { - optimizationLevel: 7, - }, - mozjpeg: { - quality: 20, - }, - pngquant: { - quality: [0.8, 0.9], - speed: 4, - }, - svgo: { - plugins: [ - { - name: 'removeViewBox', - }, - { - name: 'removeEmptyAttrs', - active: false, - }, - ], - }, - }), + // viteCompression({ + // verbose: false, + // disable: false, + // threshold: 10240, + // algorithm: 'brotliCompress', + // }), + // viteCompression({ + // verbose: false, + // disable: false, + // algorithm: 'gzip', + // threshold: 10240, + // }), + // viteImagemin({ + // gifsicle: { + // optimizationLevel: 7, + // interlaced: false, + // }, + // optipng: { + // optimizationLevel: 7, + // }, + // mozjpeg: { + // quality: 20, + // }, + // pngquant: { + // quality: [0.8, 0.9], + // speed: 4, + // }, + // svgo: { + // plugins: [ + // { + // name: 'removeViewBox', + // }, + // { + // name: 'removeEmptyAttrs', + // active: false, + // }, + // ], + // }, + // }), ], resolve: { alias: {