Skip to content

Bug: --display-entrypoints=false does not hide entries #463

Description

@sfger

Describe the bug

webpack --watch --progress --display-error-details --hide-modules=true --display-chunks=false --display-entrypoints=false is not work as expected

What is the current behavior?

No matter true or false when I give a value of --display-entrypoints, the entrypoints in the stdout output always shows!

To Reproduce
Steps to reproduce the behavior:

  1. find a project use webpack-cli and open it in the cmd
  2. Input the order: webpack --watch --progress --display-error-details --hide-modules=true --display-chunks=false --display-entrypoints=false
  3. See the stdout output

Expected behavior
--display-entrypoints=false : the entrypoints do not shows

Screenshots
If applicable, add screenshots to help explain your problem.
image

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

Additional context
I debuged the code in bin/webpack.js:
just change the code from:
ifArg("display-entrypoints", function(bool) {
if (bool) outputOptions.entrypoints = true;
});
to:
ifArg("display-entrypoints", function(bool) {
outputOptions.entrypoints = !!bool;
})
It will work well:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions