Webpack-dev-server: v3.3.0 webpack-dev-server --color no longer works when using preset stats

Created on 8 Apr 2019  路  7Comments  路  Source: webpack/webpack-dev-server

  • Operating System: MacOS Mojave 10.14.3
  • Node Version: 8.12.0
  • NPM Version: 6.4.1
  • webpack Version: 4.29.6
  • webpack-dev-server Version: 3.3.0
  • [x] This is a bug
  • [ ] This is a modification request

Code

This code worked in 3.2.0 but not in 3.3.0
webpack-dev-server --color --progress --config config/webpack.dev.coffee --mode development

Potentially relevant information

// webpack.config.js
`stats: 'detailed'

Expected Behavior

Since color is not defined in the pre-defined detailed stats I don't expect it to not be applied.

For Bugs; How can we reproduce the behavior?

Update to 3.3.0. Colors still work if I downgrade to previous version.

help wanted 3 (important) server 2 (regression) 3 (broken)

All 7 comments

/cc @hiroppy i think we already fix it in master, but need add test to avoid future regressions

Yes, it has already been fixed.

Sorry, no, it was not reflected if passed directly from CLI.

Sorry, I mistook. It has already been fixed.

Maybe it is regression for stats and 3.3.0

I did a bit more testing and it works if stats isn't defined but breaks whenever it is. Not sure if that helps or not.

I added --color test

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gimmi picture gimmi  路  3Comments

wojtekmaj picture wojtekmaj  路  3Comments

subblue picture subblue  路  3Comments

piotrszaredko picture piotrszaredko  路  3Comments

antoinerousseau picture antoinerousseau  路  3Comments