mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
| var path = require("path");
 | |
| var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
 | |
| module.exports = {
 | |
| 	mode: "production",
 | |
| 	entry: {
 | |
| 		pageA: "./pageA",
 | |
| 		pageB: "./pageB"
 | |
| 	},
 | |
| 	output: {
 | |
| 		path: path.join(__dirname, "js"),
 | |
| 		filename: "[name].bundle.js",
 | |
| 		chunkFilename: "[id].chunk.js"
 | |
| 	},
 | |
| 	plugins: [
 | |
| 		new CommonsChunkPlugin({
 | |
| 			filename: "commons.js",
 | |
| 			name: "commons"
 | |
| 		})
 | |
| 	]
 | |
| };
 |