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