Commit 51eb20f8 authored by gaoshiyao's avatar gaoshiyao

gzip 压缩

parent 939e617e
...@@ -105,7 +105,8 @@ if (config.build.productionGzip) { ...@@ -105,7 +105,8 @@ if (config.build.productionGzip) {
webpackConfig.plugins.push( webpackConfig.plugins.push(
new CompressionWebpackPlugin({ new CompressionWebpackPlugin({
asset: '[path].gz[query]', // asset: '[path].gz[query]',
filename: '[path].gz[query]',
algorithm: 'gzip', algorithm: 'gzip',
test: new RegExp( test: new RegExp(
'\\.(' + '\\.(' +
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment