2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 09:57:31 +00:00

Fix incorrect build log duration

This commit is contained in:
nanaya 2024-12-08 05:24:32 +09:00
parent 74e9f15193
commit df5991969d

View File

@ -66,9 +66,10 @@ const plugins = [
{
name: 'log',
setup (build) {
const startTime = Date.now();
let startTime = Date.now();
build.onStart(() => {
startTime = Date.now();
console.log(new Date(), 'Build started');
});
build.onEnd(() => {