| 
									
										
										
										
											2017-06-23 20:56:02 +08:00
										 |  |  | const webpack = require("webpack"); | 
					
						
							|  |  |  | const path = require("path"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | webpack({ | 
					
						
							|  |  |  | 	context: __dirname, | 
					
						
							|  |  |  | 	entry: "./createBenchmark/entry.js", | 
					
						
							|  |  |  | 	output: { | 
					
						
							|  |  |  | 		path: __dirname, | 
					
						
							|  |  |  | 		filename: "benchmark-bundle.js" | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	target: "node", | 
					
						
							|  |  |  | 	node: { | 
					
						
							|  |  |  | 		__dirname: false | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	plugins: [ | 
					
						
							|  |  |  | 		new webpack.NamedModulesPlugin(), | 
					
						
							|  |  |  | 		new webpack.IgnorePlugin(/^(fsevents|uglify-js)$/), | 
					
						
							|  |  |  | 		new webpack.NormalModuleReplacementPlugin(/^.\/loadLoader$/, path.resolve(__dirname, "./createBenchmark/loadLoader")) | 
					
						
							|  |  |  | 	] | 
					
						
							| 
									
										
										
										
											2017-12-27 22:54:59 +08:00
										 |  |  | }, (err, stats) => { | 
					
						
							| 
									
										
										
										
											2017-06-23 20:56:02 +08:00
										 |  |  | 	console.log(stats.toString()); | 
					
						
							|  |  |  | }); |