Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build time display #277

Merged
merged 1 commit into from
Nov 8, 2017
Merged

Fix build time display #277

merged 1 commit into from
Nov 8, 2017

Conversation

krizzu
Copy link
Contributor

@krizzu krizzu commented Nov 8, 2017

@krizzu krizzu requested a review from thymikee November 8, 2017 11:34
@Titozzz
Copy link

Titozzz commented Nov 8, 2017

Cool 👍

const stats = webpackStats.toJson({ timing: true });
return stats.time
? stats.time
: stats.children.reduce(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about to go for something like this: Math.max(...stats.children.map(({time}) => time))? I think it's more readable.

@satya164 satya164 merged commit 39ab2a9 into master Nov 8, 2017
@krizzu krizzu deleted the krizzu/BuildTimeFix branch November 8, 2017 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants