Skip to content

Commit 68a19d5

Browse files
committed
fix[chore]: fix error when enable gzip
1 parent 3dd29ab commit 68a19d5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

build/webpack.prod.conf.js

-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ if (config.build.productionGzip) {
150150

151151
webpackConfig.plugins.push(
152152
new CompressionWebpackPlugin({
153-
asset: '[path].gz[query]',
154153
algorithm: 'gzip',
155154
test: new RegExp(
156155
'\\.(' + config.build.productionGzipExtensions.join('|') + ')$'

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"babel-preset-env": "1.7.0",
7676
"babel-preset-stage-2": "6.24.1",
7777
"chalk": "2.4.1",
78+
"compression-webpack-plugin": "2.0.0",
7879
"copy-webpack-plugin": "4.5.2",
7980
"cross-env": "5.2.0",
8081
"css-loader": "1.0.0",

0 commit comments

Comments
 (0)