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

be able to disable colors for browser console.log #169

Open
lhapaipai opened this issue Dec 8, 2024 · 2 comments
Open

be able to disable colors for browser console.log #169

lhapaipai opened this issue Dec 8, 2024 · 2 comments

Comments

@lhapaipai
Copy link

lhapaipai commented Dec 8, 2024

Hi !

a little suggestion for firefox users...

Logs with colors improve readability and are therefore relevant when they appear in the server-side terminal. However, when this same code is executed on the browser side and the browser does not support colors (Firefox), the developer experience is degraded. Would it be possible to implement an option to disable colors for code written on the browser side?

better-console-logs

react-router-devtools version: 1.0.5
firefox version: 133 (Linux)

log

@AlemTuzlak
Copy link
Contributor

I was planning to turn this into an AST transform at some point instead of a plain old replace and that would allow me to actually KNOW where the console log is, until then I could add a flag that allows you to disable colors but that would disable it in the server logs as well unfortunately

@lhapaipai
Copy link
Author

Good evening again!
I understand... and I think this can be perfectly suitable for users who would find themselves confronted with this kind of problem.
To tell you the truth, I had not even imagined that you could keep the colors on the server side and remove them on the browser side.

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