Skip to content

Commit

Permalink
fix[chore]: fix error when enable gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Jan 9, 2019
1 parent 3dd29ab commit 68a19d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion build/webpack.prod.conf.js
Expand Up @@ -150,7 +150,6 @@ if (config.build.productionGzip) {

webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp(
'\\.(' + config.build.productionGzipExtensions.join('|') + ')$'
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -75,6 +75,7 @@
"babel-preset-env": "1.7.0",
"babel-preset-stage-2": "6.24.1",
"chalk": "2.4.1",
"compression-webpack-plugin": "2.0.0",
"copy-webpack-plugin": "4.5.2",
"cross-env": "5.2.0",
"css-loader": "1.0.0",
Expand Down

0 comments on commit 68a19d5

Please sign in to comment.