| 
									
										
										
										
											2017-07-27 19:52:38 +08:00
										 |  |  | var path = require("path"); | 
					
						
							|  |  |  | var webpack = require("../../../"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = { | 
					
						
							| 
									
										
										
										
											2017-12-14 17:09:09 +08:00
										 |  |  | 	// mode: "development || "production",
 | 
					
						
							| 
									
										
										
										
											2017-07-27 19:52:38 +08:00
										 |  |  | 	context: __dirname, | 
					
						
							|  |  |  | 	entry: ["example-vendor"], | 
					
						
							|  |  |  | 	output: { | 
					
						
							|  |  |  | 		filename: "vendor.js", // best use [hash] here too
 | 
					
						
							| 
									
										
										
										
											2018-01-05 04:39:29 +08:00
										 |  |  | 		path: path.resolve(__dirname, "dist"), | 
					
						
							| 
									
										
										
										
											2018-02-25 09:00:20 +08:00
										 |  |  | 		library: "vendor_lib_[hash]" | 
					
						
							| 
									
										
										
										
											2017-07-27 19:52:38 +08:00
										 |  |  | 	}, | 
					
						
							|  |  |  | 	plugins: [ | 
					
						
							|  |  |  | 		new webpack.DllPlugin({ | 
					
						
							|  |  |  | 			name: "vendor_lib_[hash]", | 
					
						
							| 
									
										
										
										
											2018-02-25 09:00:20 +08:00
										 |  |  | 			path: path.resolve(__dirname, "dist/vendor-manifest.json") | 
					
						
							|  |  |  | 		}) | 
					
						
							|  |  |  | 	] | 
					
						
							| 
									
										
										
										
											2017-07-27 19:52:38 +08:00
										 |  |  | }; |