Skip to content

Instantly share code, notes, and snippets.

@shershen08
Created March 15, 2017 10:28
Show Gist options
  • Save shershen08/9b162ef4dae2393e18c3a3143dc576cd to your computer and use it in GitHub Desktop.
Save shershen08/9b162ef4dae2393e18c3a3143dc576cd to your computer and use it in GitHub Desktop.
Uber-simple webpack plugin that prints how fast the sources were done recompiling
function DoneInXSecPlugin() {
this.chunkVersions = {};
}
DoneInXSecPlugin.prototype.apply = function (compiler) {
compiler.plugin("done", (stats) => {
console.log("Done in %s sec", (stats.endTime - stats.startTime)/1000);
});
};
module.exports = DoneInXSecPlugin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment