mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			677 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			677 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 = compiler.inputFileSystem;
 | 
						|
	compiler.resolvers.context.fileSystem = compiler.inputFileSystem;
 | 
						|
	compiler.resolvers.loader.fileSystem = compiler.inputFileSystem;
 | 
						|
	compiler.outputFileSystem = this.outputFileSystem;
 | 
						|
}; |