fix[chore]: fix error when enable gzip
This commit is contained in:
parent
3dd29ab07a
commit
68a19d55de
|
@ -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('|') + ')$'
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue