Skip to content

Instantly share code, notes, and snippets.

@adamrneary
Created February 19, 2016 06:36
Show Gist options
  • Save adamrneary/abfe28ea7a6e6f76f213 to your computer and use it in GitHub Desktop.
Save adamrneary/abfe28ea7a6e6f76f213 to your computer and use it in GitHub Desktop.
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