-
Notifications
You must be signed in to change notification settings - Fork 11
fix: revamp dev and vite plugin logging #269
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: revamp dev and vite plugin logging #269
Conversation
- hook into the vite logger when using the vite plugin - fix weird unicode issue - use terminal colour lib with a smaller footprint - remove an extraneous logger util - add a basic message to inform the user that the Netlify Vite plugin loaded - when using middleware mode, add a message informing the user that this is loaded and listing enables features - add test coverage for logs
383dd96 to
05bfa6e
Compare
65fab98 to
c77505d
Compare
| }, | ||
| "dependencies": { | ||
| "@netlify/dev": "4.1.0", | ||
| "@netlify/dev-utils": "^3.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I did some of these fixes in #261 as well
| await Promise.allSettled(this.#cleanupJobs.map((task) => task())) | ||
| } | ||
|
|
||
| public getEnabledFeatures(): string[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to share a screenshot example of this output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 it's all in the PR description already!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, missed that sorry
Summary
@netlify/dev-utilsBefore
Unlinked site
Linked site
You can't even tell if the Netlify plugin is running 😢
After
Unlinked site
Linked site
middleware: false