Created
          February 19, 2016 06:36 
        
      - 
      
 - 
        
Save adamrneary/abfe28ea7a6e6f76f213 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function WebpackReadyPlugin(options) { | |
| this.filepath = options.filepath; | |
| } | |
| WebpackReadyPlugin.prototype.apply = function(compiler) { | |
| const filepath = this.filepath; | |
| compiler.plugin('done', function() { | |
| console.log('touching ' + filepath + ' at ' + new Date()); | |
| fs.closeSync(fs.openSync(filepath, 'w')); | |
| }); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment