Perf: Add Cache Option

This commit is contained in:
zhaojisen
2025-02-05 11:40:34 +08:00
committed by ZhaoJiSen
parent b127849388
commit f518e4cb10

View File

@@ -154,7 +154,8 @@ module.exports = {
algorithm: 'gzip',
test: productionGzipExtensions, // 处理所有匹配此 {RegExp} 的资源
threshold: 10240, // 只处理比这个值大的资源。按字节计算(楼主设置10K以上进行压缩)
minRatio: 0.8 // 只有压缩率比这个值小的资源才会被处理
minRatio: 0.8, // 只有压缩率比这个值小的资源才会被处理
cache: false
}
])
})