mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
Fix incorrect build log duration
This commit is contained in:
parent
74e9f15193
commit
df5991969d
3
build.js
3
build.js
@ -66,9 +66,10 @@ const plugins = [
|
|||||||
{
|
{
|
||||||
name: 'log',
|
name: 'log',
|
||||||
setup (build) {
|
setup (build) {
|
||||||
const startTime = Date.now();
|
let startTime = Date.now();
|
||||||
|
|
||||||
build.onStart(() => {
|
build.onStart(() => {
|
||||||
|
startTime = Date.now();
|
||||||
console.log(new Date(), 'Build started');
|
console.log(new Date(), 'Build started');
|
||||||
});
|
});
|
||||||
build.onEnd(() => {
|
build.onEnd(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user