mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			550 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			550 B
		
	
	
	
		
			JavaScript
		
	
	
	
| var path = require("path");
 | |
| var { AggressiveMergingPlugin } = require("../..").optimize;
 | |
| 
 | |
| module.exports = {
 | |
| 	// mode: "development" || "production",
 | |
| 	entry: {
 | |
| 		pageA: "./pageA",
 | |
| 		pageB: "./pageB",
 | |
| 		pageC: "./pageC"
 | |
| 	},
 | |
| 	output: {
 | |
| 		path: path.join(__dirname, "dist"),
 | |
| 		filename: "[name].bundle.js",
 | |
| 		chunkFilename: "[id].chunk.js"
 | |
| 	},
 | |
| 	plugins: [
 | |
| 		new AggressiveMergingPlugin({
 | |
| 			minSizeReduce: 1.5
 | |
| 		})
 | |
| 	],
 | |
| 	optimization: {
 | |
| 		chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only)
 | |
| 	}
 | |
| };
 |