mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
| const { HotModuleReplacementPlugin } = require("../../");
 | |
| 
 | |
| module.exports = {
 | |
| 	mode: "development",
 | |
| 	cache: {
 | |
| 		type: "filesystem",
 | |
| 		idleTimeout: 5000
 | |
| 	},
 | |
| 	experiments: {
 | |
| 		lazyCompilation: true
 | |
| 	},
 | |
| 	devServer: {
 | |
| 		hot: true,
 | |
| 		devMiddleware: {
 | |
| 			publicPath: "/dist/"
 | |
| 		}
 | |
| 	},
 | |
| 	plugins: [new HotModuleReplacementPlugin()]
 | |
| };
 |