mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			63 lines
		
	
	
		
			926 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			926 B
		
	
	
	
		
			JavaScript
		
	
	
	
| module.exports = [
 | |
| 	{
 | |
| 		mode: "production",
 | |
| 		entry: {
 | |
| 			first: "./first",
 | |
| 			second: "./second"
 | |
| 		},
 | |
| 		target: "web",
 | |
| 		output: {
 | |
| 			filename: "[name].js"
 | |
| 		},
 | |
| 		optimization: {
 | |
| 			moduleIds: "natural",
 | |
| 			chunkIds: "natural",
 | |
| 			concatenateModules: false,
 | |
| 			splitChunks: {
 | |
| 				cacheGroups: {
 | |
| 					vendor: {
 | |
| 						test: /vendor/,
 | |
| 						chunks: "initial",
 | |
| 						name: "vendor",
 | |
| 						enforce: true
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		stats: {
 | |
| 			assets: false
 | |
| 		}
 | |
| 	},
 | |
| 
 | |
| 	{
 | |
| 		mode: "production",
 | |
| 		entry: {
 | |
| 			first: "./first",
 | |
| 			second: "./second"
 | |
| 		},
 | |
| 		target: "web",
 | |
| 		output: {
 | |
| 			filename: "[name].js"
 | |
| 		},
 | |
| 		optimization: {
 | |
| 			moduleIds: "natural",
 | |
| 			chunkIds: "natural",
 | |
| 			splitChunks: {
 | |
| 				cacheGroups: {
 | |
| 					vendor: {
 | |
| 						test: /vendor/,
 | |
| 						chunks: "initial",
 | |
| 						name: "vendor",
 | |
| 						enforce: true
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		stats: {
 | |
| 			assets: false,
 | |
| 			orphanModules: true,
 | |
| 			optimizationBailout: true
 | |
| 		}
 | |
| 	}
 | |
| ];
 |