|
@@ -61,11 +61,13 @@ module.exports = {
|
|
|
plugins: [
|
|
|
|
|
|
new CompressionPlugin({
|
|
|
- cache: false,
|
|
|
- test: /\.(js|css|html)?$/i,
|
|
|
- filename: '[path].gz[query]',
|
|
|
- algorithm: 'gzip',
|
|
|
- minRatio: 0.8
|
|
|
+ cache: false,
|
|
|
+ test: /\.(js|css|html|jpe?g|png|gif|svg)?$/i,
|
|
|
+ filename: '[path][name][ext].gz',
|
|
|
+ algorithm: 'gzip',
|
|
|
+
|
|
|
+ minRatio: 0.8,
|
|
|
+ deleteOriginalAssets: false
|
|
|
})
|
|
|
],
|
|
|
},
|