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

Option to disable spinner in watch mode #742

Closed
mhanberg opened this issue Feb 2, 2021 · 2 comments
Closed

Option to disable spinner in watch mode #742

mhanberg opened this issue Feb 2, 2021 · 2 comments

Comments

@mhanberg
Copy link

mhanberg commented Feb 2, 2021

The watch mode is very nice, but the spinner disrupts the console during my development, so it would be nice to be able to turn it off.

Here is an example: Running a Phoenix server with the console enabled. (I have phoenix configured to run esbuild when the dev server boots up)

You can see that the esbuild spinner eats the characters as I try to type, not allowing me to easily use the REPL console.

esbuild-spinner

Thanks!

@evanw
Copy link
Owner

evanw commented Feb 2, 2021

The log level API option is documented here: https://esbuild.github.io/api/#log-level. Setting --log-level=warning only shows warnings and errors, setting --log-level=error only shows errors, and setting --log-level=silent shows nothing.

@mhanberg
Copy link
Author

mhanberg commented Feb 2, 2021

That works, thanks 👍.

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

No branches or pull requests

2 participants