You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
find a project use webpack-cli and open it in the cmd
Input the order: webpack --watch --progress --display-error-details --hide-modules=true --display-chunks=false --display-entrypoints=false
See the stdout output
Expected behavior
--display-entrypoints=false : the entrypoints do not shows
Screenshots
If applicable, add screenshots to help explain your problem.
*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:)
The text was updated successfully, but these errors were encountered:
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
Describe the bug
webpack --watch --progress --display-error-details --hide-modules=true --display-chunks=false --display-entrypoints=false
is not work as expectedWhat 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:
Expected behavior
--display-entrypoints=false : the entrypoints do not shows
Screenshots
If applicable, add screenshots to help explain your problem.
*Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional 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:)
The text was updated successfully, but these errors were encountered: