优化构建

This commit is contained in:
hooray 2022-10-12 01:19:37 +08:00
parent ee78a80307
commit 67783fc6b7

View File

@ -8,7 +8,7 @@ export default function createCompression(env) {
plugin.push( plugin.push(
compression({ compression({
ext: '.gz', ext: '.gz',
deleteOriginFile: false, deleteOriginFile: true,
}), }),
) )
} }
@ -17,7 +17,7 @@ export default function createCompression(env) {
compression({ compression({
ext: '.br', ext: '.br',
algorithm: 'brotliCompress', algorithm: 'brotliCompress',
deleteOriginFile: false, deleteOriginFile: true,
}), }),
) )
} }