| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2014-06-03 03:23:53 +08:00
										 |  |  | var WebWorkerMainTemplatePlugin = require("./WebWorkerMainTemplatePlugin"); | 
					
						
							| 
									
										
										
										
											2014-06-03 05:40:50 +08:00
										 |  |  | var WebWorkerChunkTemplatePlugin = require("./WebWorkerChunkTemplatePlugin"); | 
					
						
							| 
									
										
										
										
											2015-10-18 04:40:31 +08:00
										 |  |  | var WebWorkerHotUpdateChunkTemplatePlugin = require("./WebWorkerHotUpdateChunkTemplatePlugin"); | 
					
						
							| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-13 06:20:09 +08:00
										 |  |  | function WebWorkerTemplatePlugin() {} | 
					
						
							| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | module.exports = WebWorkerTemplatePlugin; | 
					
						
							|  |  |  | WebWorkerTemplatePlugin.prototype.apply = function(compiler) { | 
					
						
							| 
									
										
										
										
											2014-06-03 03:23:53 +08:00
										 |  |  | 	compiler.plugin("this-compilation", function(compilation) { | 
					
						
							|  |  |  | 		compilation.mainTemplate.apply(new WebWorkerMainTemplatePlugin()); | 
					
						
							| 
									
										
										
										
											2014-06-03 05:40:50 +08:00
										 |  |  | 		compilation.chunkTemplate.apply(new WebWorkerChunkTemplatePlugin()); | 
					
						
							| 
									
										
										
										
											2015-10-18 04:40:31 +08:00
										 |  |  | 		compilation.hotUpdateChunkTemplate.apply(new WebWorkerHotUpdateChunkTemplatePlugin()); | 
					
						
							| 
									
										
										
										
											2014-06-03 03:23:53 +08:00
										 |  |  | 	}); | 
					
						
							| 
									
										
										
										
											2015-07-08 20:39:02 +08:00
										 |  |  | }; |