Merge branch 'master' into redPackets

This commit is contained in:
wangsongsole 2023-05-24 18:08:57 +08:00
commit 2ab3c64110
1 changed files with 9 additions and 8 deletions

View File

@ -592,6 +592,7 @@ module.exports = function (webpackEnv) {
] ]
}, },
plugins: [ plugins: [
process.env.NODE_ENV !== 'development' &&
new CompressionPlugin({ new CompressionPlugin({
filename: '[path].gz[query]', // 目标资源名称。[file] 会被替换成原资源。[path] 会被替换成原资源路径,[query] 替换成原查询字符串 filename: '[path].gz[query]', // 目标资源名称。[file] 会被替换成原资源。[path] 会被替换成原资源路径,[query] 替换成原查询字符串
algorithm: 'gzip', // 算法 algorithm: 'gzip', // 算法