mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			651 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			651 B
		
	
	
	
		
			JavaScript
		
	
	
	
| /*
 | |
| 	MIT License http://www.opensource.org/licenses/mit-license.php
 | |
| 	Author Tobias Koppers @sokra
 | |
| */
 | |
| function WebEnvironmentPlugin(inputFileSystem, outputFileSystem) {
 | |
| 	this.inputFileSystem = inputFileSystem;
 | |
| 	this.outputFileSystem = outputFileSystem;
 | |
| }
 | |
| module.exports = WebEnvironmentPlugin;
 | |
| WebEnvironmentPlugin.prototype.apply = function(compiler) {
 | |
| 	var inputFileSystem = compiler.inputFileSystem = this.inputFileSystem;
 | |
| 	compiler.resolvers.normal.fileSystem = inputFileSystem;
 | |
| 	compiler.resolvers.context.fileSystem = inputFileSystem;
 | |
| 	compiler.resolvers.loader.fileSystem = inputFileSystem;
 | |
| 	compiler.outputFileSystem = this.outputFileSystem;
 | |
| };
 |