We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As stated in https://webpack.js.org/configuration/mode/, "If not set, webpack sets production as the default value for mode."
What is the current behavior? argv does not contain mode property set to 'production', when invoking webpack without any mode set.
argv
mode
'production'
webpack
If the current behavior is a bug, please provide the steps to reproduce. file webpack.config.js:
module.exports = (env, argv) => { console.log(argv); }
now run webpack, without setting any mode, and see that the argv object logged does not contain mode property set to 'production'.
What is the expected behavior?
argv object should have mode property set to 'production'.
Other relevant information: webpack version: 4.43.0 Node.js version: 14.3.0 Operating System: Mac OSX 10.15.5 Additional tools: None
The text was updated successfully, but these errors were encountered:
@tsonge Thanks for reporting. I was able to reproduce. I will send a fix soon.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug report
As stated in https://webpack.js.org/configuration/mode/, "If not set, webpack sets production as the default value for mode."
What is the current behavior?
argv
does not containmode
property set to'production'
, when invokingwebpack
without any mode set.If the current behavior is a bug, please provide the steps to reproduce.
file webpack.config.js:
now run
webpack
, without setting any mode, and see that theargv
object logged does not containmode
property set to'production'
.What is the expected behavior?
argv
object should havemode
property set to'production'
.Other relevant information:
webpack version: 4.43.0
Node.js version: 14.3.0
Operating System: Mac OSX 10.15.5
Additional tools: None
The text was updated successfully, but these errors were encountered: