fix[chore]: fix error when enable gzip

This commit is contained in:
Pan 2019-01-09 14:53:36 +08:00
parent 3dd29ab07a
commit 68a19d55de
2 changed files with 1 additions and 1 deletions

View file

@ -150,7 +150,6 @@ if (config.build.productionGzip) {
webpackConfig.plugins.push( webpackConfig.plugins.push(
new CompressionWebpackPlugin({ new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip', algorithm: 'gzip',
test: new RegExp( test: new RegExp(
'\\.(' + config.build.productionGzipExtensions.join('|') + ')$' '\\.(' + config.build.productionGzipExtensions.join('|') + ')$'

View file

@ -75,6 +75,7 @@
"babel-preset-env": "1.7.0", "babel-preset-env": "1.7.0",
"babel-preset-stage-2": "6.24.1", "babel-preset-stage-2": "6.24.1",
"chalk": "2.4.1", "chalk": "2.4.1",
"compression-webpack-plugin": "2.0.0",
"copy-webpack-plugin": "4.5.2", "copy-webpack-plugin": "4.5.2",
"cross-env": "5.2.0", "cross-env": "5.2.0",
"css-loader": "1.0.0", "css-loader": "1.0.0",