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

[v4] --color flag not working well with webpack 4 #1967

Closed
SevenOutman opened this issue Oct 19, 2020 · 6 comments
Closed

[v4] --color flag not working well with webpack 4 #1967

SevenOutman opened this issue Oct 19, 2020 · 6 comments
Labels

Comments

@SevenOutman
Copy link

Describe the bug

I'm using webpack-cli@4.0.0 with webpack@4.44.2. Running webpack --progress --color command does not output colorful log but plain text with no colors.

However, webpack serve outputs with color normally.

Screenshots

image

Please paste the results of webpack-cli info here, and mention other relevant information

  System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
    Memory: 2.15 GB / 32.00 GB
  Binaries:
    Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
    Yarn: 1.21.1 - ~/.yarn/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v12.16.3/bin/npm
  Browsers:
    Chrome: 86.0.4240.80
    Safari: 14.0
  Packages:
    clean-webpack-plugin: ^3.0.0 => 3.0.0 
    copy-webpack-plugin: ^6.2.1 => 6.2.1 
    css-minimizer-webpack-plugin: ^1.1.5 => 1.1.5 
    html-webpack-plugin: ^4.5.0 => 4.5.0 
    terser-webpack-plugin: ^4.2.3 => 4.2.3 
    webpack: ^4.44.2 => 4.44.2 
    webpack-cli: ^4.0.0 => 4.0.0 
    webpack-dev-server: ^3.11.0 => 3.11.0 
    webpack-merge: ^5.2.0 => 5.2.0 
@SevenOutman SevenOutman changed the title [v4] --color flag not not working well with webpack 4 [v4] --color flag not working well with webpack 4 Oct 19, 2020
@anshumanv
Copy link
Member

Hi, it was a bug in CLI which is fixed here - #1944

Should be out in the next release :)

@alexander-akait
Copy link
Member

Fixed in master, release will be today

@keyrox
Copy link

keyrox commented Oct 24, 2020

Fixed in master, release will be today

Was it released? Still having the same issue.

@alexander-akait
Copy link
Member

alexander-akait commented Oct 24, 2020

You should not use the color flag, it was removed, we automatically enable/disable it if colors supported

@keyrox
Copy link

keyrox commented Oct 24, 2020

You should not use the color flag, it was removed, we automatically enable/disable it if colors supported

I am using:

"webpack": "4.44.2"
"webpack-cli": "4.1.0"

And even without the color flag, it still doesn't show any colour.
When downgrading to "webpack-cli":"3.3.12" everything shows up with colours as usual.

@alexander-akait
Copy link
Member

please create reproducible test repo, it was fixed in 4.1.0

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

No branches or pull requests

4 participants