Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(vite): display production build stats #9761

Merged
merged 1 commit into from Dec 19, 2022
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Dec 16, 2022

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Change vite.logLevel's default to info on build. And restore consola wrap on building to avoid breaking the layout of assets output (see nitro output for example)

Before:

image

After:

image

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@codesandbox
Copy link

codesandbox bot commented Dec 16, 2022

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Beautiful πŸ’―

@pi0 pi0 changed the title feat: display building info on build feat(vite): display building info on build Dec 19, 2022
await build(nitro)
logger.wrapAll()
Copy link
Member

Choose a reason for hiding this comment

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

I will try to remove this requirement from nitro...

@pi0 pi0 changed the title feat(vite): display building info on build feat(vite): display production build stats Dec 19, 2022
@pi0 pi0 merged commit faf2607 into main Dec 19, 2022
@pi0 pi0 deleted the chore/vite-log-level-build branch December 19, 2022 11:57
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe mentioned this pull request Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants