File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 27
27
"@types/react" : " ^16.0.5" ,
28
28
"@types/react-dom" : " ^15.5.4" ,
29
29
"awesome-typescript-loader" : " ^3.2.2" ,
30
+ "compression-webpack-plugin" : " ^1.0.0" ,
30
31
"css-loader" : " ^0.28.4" ,
31
32
"del-cli" : " ^1.1.0" ,
32
33
"enzyme" : " ^2.9.1" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const webpack = require('webpack');
3
3
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
4
4
const OfflinePlugin = require ( 'offline-plugin' ) ;
5
5
const NameAllModulesPlugin = require ( 'name-all-modules-plugin' ) ;
6
+ const CompressionPlugin = require ( 'compression-webpack-plugin' ) ;
6
7
7
8
module . exports = {
8
9
output : {
@@ -47,6 +48,11 @@ module.exports = {
47
48
ServiceWorker : {
48
49
events : true
49
50
}
51
+ } ) ,
52
+ new CompressionPlugin ( {
53
+ asset : '[path].gz[query]' ,
54
+ algorithm : 'gzip' ,
55
+ test : / \. ( j s | j s o n | c s s | h t m l ) $ /
50
56
} )
51
57
]
52
58
} ;
Original file line number Diff line number Diff line change @@ -312,6 +312,12 @@ async-each@^1.0.0:
312
312
version "1.0.1"
313
313
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
314
314
315
+
316
+ version "2.4.1"
317
+ resolved "https://registry.yarnpkg.com/async/-/async-2.4.1.tgz#62a56b279c98a11d0987096a01cc3eeb8eb7bbd7"
318
+ dependencies :
319
+ lodash "^4.14.0"
320
+
315
321
async@^0.9.0 :
316
322
version "0.9.2"
317
323
resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
@@ -1082,6 +1088,13 @@ compressible@~2.0.10:
1082
1088
dependencies :
1083
1089
mime-db ">= 1.29.0 < 2"
1084
1090
1091
+ compression-webpack-plugin@^1.0.0 :
1092
+ version "1.0.0"
1093
+ resolved "https://registry.yarnpkg.com/compression-webpack-plugin/-/compression-webpack-plugin-1.0.0.tgz#5c5eb6afd08ca6a5d66006eeef71da17b01bd676"
1094
+ dependencies :
1095
+ async "2.4.1"
1096
+ webpack-sources "^1.0.1"
1097
+
1085
1098
compression@^1.5.2 :
1086
1099
version "1.7.0"
1087
1100
resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.0.tgz#030c9f198f1643a057d776a738e922da4373012d"
You can’t perform that action at this time.
0 commit comments