Merge branch 'master' into redPackets
This commit is contained in:
commit
2ab3c64110
|
@ -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', // 算法
|
||||||
|
|
Loading…
Reference in New Issue