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

Colors not displaying with prefix enabled #49

Closed
ljwagerfield opened this issue Aug 7, 2016 · 5 comments
Closed

Colors not displaying with prefix enabled #49

ljwagerfield opened this issue Aug 7, 2016 · 5 comments

Comments

@ljwagerfield
Copy link

I've noticed colors are only displayed by my webpack child process when using the --raw flag.

However, the --raw flag seems to disable prefixes.

Is it possible to have the child processes output their color and keep the prefixes I've assigned to them?

(Would love to have my cake and eat it! :D)

@kimmobrunfeldt
Copy link
Contributor

This isn't so easy because to preserve original colors output by webpack, we need to directly pipe webpack stdout without modifying it in between.

I'm open to a separate --no-colors flag if someone figures out how to preserve the original colors and modify the output. Last time when I investigated this, I couldn't find a reliable way for it.

@kimmobrunfeldt
Copy link
Contributor

Meanwhile you can try to find if webpack has a --color flag which forces it to use colors in output and remove the --raw attribute. See: https://github.com/kimmobrunfeldt/concurrently/issues/8#issuecomment-184901271

@aecz
Copy link
Contributor

aecz commented Nov 17, 2016

If child process uses chalk, just set FORCE_COLOR=1 (using cross-env for example).
Also you can set NPM_CONFIG_COLOR=always.
Concurrently could set those variables automatically. Adding a flag --force-colors would be nice.

@gustavohenke
Copy link
Member

Hey guys, check #86 for some context on how this was fixed.

@gustavohenke
Copy link
Member

Published v3.2.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants