mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:18:19 +08:00
chore: 更新依赖
This commit is contained in:
+5
-3
@@ -98,10 +98,12 @@ export default function createVitePlugins(mode: string, isBuild = false) {
|
||||
}),
|
||||
|
||||
// https://github.com/nonzzz/vite-plugin-compression
|
||||
viteEnv.VITE_BUILD_COMPRESS?.split(',').includes('gzip') && compression(),
|
||||
viteEnv.VITE_BUILD_COMPRESS?.split(',').includes('brotli') && compression({
|
||||
viteEnv.VITE_BUILD_COMPRESS && compression({
|
||||
exclude: [/\.(br)$/, /\.(gz)$/],
|
||||
algorithm: 'brotliCompress',
|
||||
algorithms: viteEnv.VITE_BUILD_COMPRESS.split(',').map((item: string) => ({
|
||||
gzip: 'gzip',
|
||||
brotli: 'brotliCompress',
|
||||
}[item])),
|
||||
}),
|
||||
|
||||
viteEnv.VITE_BUILD_ARCHIVE && Archiver({
|
||||
|
||||
Reference in New Issue
Block a user