You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
	
		
			
				
				
					
						
						
						
							 | 
							
							const fs = require('fs-extra') | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							module.exports = class MovePlugin { | 
						
						
						
						
							 | 
							
							  constructor (from, to) { | 
						
						
						
						
							 | 
							
							    this.from = from | 
						
						
						
						
							 | 
							
							    this.to = to | 
						
						
						
						
							 | 
							
							  } | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  apply (compiler) { | 
						
						
						
						
							 | 
							
							    compiler.hooks.done.tap('move-plugin', () => { | 
						
						
						
						
							 | 
							
							      if (fs.existsSync(this.from)) { | 
						
						
						
						
							 | 
							
							        fs.moveSync(this.from, this.to, { overwrite: true }) | 
						
						
						
						
							 | 
							
							      } | 
						
						
						
						
							 | 
							
							    }) | 
						
						
						
						
							 | 
							
							  } | 
						
						
						
						
							 | 
							
							}
 | 
						
						
						
						
							 | 
							
							
 |