From 67783fc6b7712a5e141b6ff7c4778fed291960a4 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Wed, 12 Oct 2022 01:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite/plugins/compression.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite/plugins/compression.ts b/vite/plugins/compression.ts index 317582d..7b2bd15 100644 --- a/vite/plugins/compression.ts +++ b/vite/plugins/compression.ts @@ -8,7 +8,7 @@ export default function createCompression(env) { plugin.push( compression({ ext: '.gz', - deleteOriginFile: false, + deleteOriginFile: true, }), ) } @@ -17,7 +17,7 @@ export default function createCompression(env) { compression({ ext: '.br', algorithm: 'brotliCompress', - deleteOriginFile: false, + deleteOriginFile: true, }), ) }