Permalink
Browse files

🐛 `@phenomic/core`: fix time log between pre-rendering and after buil…

…d hook
  • Loading branch information...
MoOx committed Apr 2, 2018
1 parent ff18000 commit 4888896f4614e2cf45130358adde771ccd1dbf5e
Showing with 3 additions and 1 deletion.
  1. +3 −1 packages/core/src/commands/build.js
@@ -182,15 +182,17 @@ async function build(config: PhenomicConfig) {
);
}
console.log("📃 Pre-rendering finished " + (Date.now() - lastStamp) + "ms");
lastStamp = Date.now();
await Promise.all(
config.plugins.map(plugin => plugin.afterBuild && plugin.afterBuild())
);
console.log(
"📃 After build hook finished " + (Date.now() - lastStamp) + "ms"
);
lastStamp = Date.now();
if (runningPhenomicAPIServer) {
runningPhenomicAPIServer.close();
}

0 comments on commit 4888896

Please sign in to comment.