forked from cybrespace/mastodon
		
	Enable stats.json analysis with Webpack Visualizer (#3509)
This commit is contained in:
		
							parent
							
								
									10768aa204
								
							
						
					
					
						commit
						edddc7c791
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -33,6 +33,10 @@ module.exports = merge(sharedConfig, {
 | 
				
			||||||
    new BundleAnalyzerPlugin({ // generates report.html and stats.json
 | 
					    new BundleAnalyzerPlugin({ // generates report.html and stats.json
 | 
				
			||||||
      analyzerMode: 'static',
 | 
					      analyzerMode: 'static',
 | 
				
			||||||
      generateStatsFile: true,
 | 
					      generateStatsFile: true,
 | 
				
			||||||
 | 
					      statsOptions: {
 | 
				
			||||||
 | 
					        // allows usage with http://chrisbateman.github.io/webpack-visualizer/
 | 
				
			||||||
 | 
					        chunkModules: true,
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      openAnalyzer: false,
 | 
					      openAnalyzer: false,
 | 
				
			||||||
      logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout
 | 
					      logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue