mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
	
	
		
			17 lines
		
	
	
		
			274 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			274 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | var CommonsChunkPlugin = require("../../../../lib/optimize/CommonsChunkPlugin"); | ||
|  | module.exports = { | ||
|  | 	entry: { | ||
|  | 		vendor: ["./a"], | ||
|  | 		main: "./index" | ||
|  | 	}, | ||
|  | 	target: "web", | ||
|  | 	output: { | ||
|  | 		filename: "[name].js" | ||
|  | 	}, | ||
|  | 	plugins: [ | ||
|  | 		new CommonsChunkPlugin({ | ||
|  | 			name: "vendor" | ||
|  | 		}) | ||
|  | 	] | ||
|  | }; |