fix[chore]: fix error when enable gzip (#252)
Remove deprecated option causing error when building with gzip enable
This commit is contained in:
parent
5b792c6fe0
commit
11fcc07a68
@ -140,7 +140,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('|') + ')$'
|
||||||
|
Loading…
Reference in New Issue
Block a user