Skip to content

Instantly share code, notes, and snippets.

@okonet
Created July 11, 2015 19:50
Show Gist options
  • Save okonet/b19d89db25f51b6d8702 to your computer and use it in GitHub Desktop.
Save okonet/b19d89db25f51b6d8702 to your computer and use it in GitHub Desktop.
// webpack.config.js
module.exports = {
...
plugins: [
function() {
this.plugin("done", function(stats) {
require("fs").writeFileSync(
path.join(__dirname, "...", "stats.json"),
JSON.stringify(stats.toJson()));
});
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment