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

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

Closed
sfger opened this issue May 24, 2018 · 1 comment
Closed

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

sfger opened this issue May 24, 2018 · 1 comment

Comments

@sfger
Copy link
Contributor

sfger commented May 24, 2018

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:)

@evenstensberg
Copy link
Member

Could you submit a PR?

@evenstensberg evenstensberg changed the title Bug: webpack --watch --progress --display-error-details --hide-modules=true --display-chunks=false --display-entrypoints=false is not work as expected Bug: --display-entrypoints=false does not hide entries May 24, 2018
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