File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,10 @@ export default merge(commonConfig, {
25
25
target : 'web' ,
26
26
entry : [ 'regenerator-runtime/runtime' , './index.tsx' ] ,
27
27
output : {
28
- filename : 'js/bundle.[fullhash ].min.js' ,
28
+ filename : 'js/bundle.[name ].min.js' ,
29
29
path : resolve ( __dirname , '../redisinsight/ui/dist' ) ,
30
30
publicPath : '/' ,
31
+ chunkFilename : '[id].[chunkhash].js'
31
32
} ,
32
33
optimization : {
33
34
minimize : true ,
@@ -37,6 +38,34 @@ export default merge(commonConfig, {
37
38
} ) ,
38
39
new CssMinimizerPlugin ( ) ,
39
40
] ,
41
+ runtimeChunk : 'single' ,
42
+ splitChunks : {
43
+ chunks : 'all' ,
44
+ maxInitialRequests : Infinity ,
45
+ minSize : 0 ,
46
+ cacheGroups : {
47
+ reactVendor : {
48
+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( r e a c t | r e a c t - d o m ) [ \\ / ] / ,
49
+ name : "reactVendor"
50
+ } ,
51
+ elasticVendor : {
52
+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ e l a s t i c ) [ \\ / ] / ,
53
+ name : "elasticVendor"
54
+ } ,
55
+ monacoVendor : {
56
+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( m o n a c o - e d i t o r ) [ \\ / ] / ,
57
+ name : "monacoVendor"
58
+ } ,
59
+ utilityVendor : {
60
+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( l o d a s h ) [ \\ / ] / ,
61
+ name : "utilityVendor"
62
+ } ,
63
+ vendor : {
64
+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( ! @ e l a s t i c ) ( ! m o n a c o - e d i t o r ) ( ! l o d a s h ) [ \\ / ] / ,
65
+ name : "vendor"
66
+ } ,
67
+ } ,
68
+ } ,
40
69
} ,
41
70
plugins : [
42
71
new MiniCssExtractPlugin ( {
You can’t perform that action at this time.
0 commit comments