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
Is your feature request related to a problem? Please describe. env flag presently supports only booleans, which is not the most verbose thing to work with plus has high migration overhead as everyone is pretty much used to the old format. So we need to support at least custom string value for properties which are passed to env, something like -
webpack --env app="test" --env title="start"
Describe the solution you'd like
We'll have to introduce separate arg parsing behaviour for env.
Describe alternatives you've considered
Additional context
Reacted by Arnaud Weyts, Yordan Kanchelov, sect, Luca Looz, Anshuman, guiann, Matt Jennings, Fabe and Dieter Oberkofler
Please consider switch this issue type both for labels and work priority, for sake of a respectful community using your solution as a multi environment standard.
Any chance of viewing this issue resolved anytime soon?
No, it is OSS
Please consider switch this issue type both for labels and work priority, for sake of a respectful community using your solution as a multi environment standard.
I could for sure, but i cannot change the labels nor webpack team priority neither i have the right skills to do a PR about it (i would happy to do it if i could!)
Anyway, as you avoid to reply to my comment section about it, I will then consider my thoughts accepted because hey... that's OSS spirt too :D
Activity
LBRDan commentedon Oct 13, 2020
Any chance of viewing this issue resolved anytime soon?
I think that should be reported on your docs (as a temporary fault on this version) as it can easily drive people nuts. It is also a huge regression (not enhancement as it's marked ATM) and it is against your own docs ( https://webpack.js.org/api/cli/#environment-options )
Please consider switch this issue type both for labels and work priority, for sake of a respectful community using your solution as a multi environment standard.
alexander-akait commentedon Oct 13, 2020
No, it is OSS
You can help and send a PR
LBRDan commentedon Oct 13, 2020
I could for sure, but i cannot change the labels nor webpack team priority neither i have the right skills to do a PR about it (i would happy to do it if i could!)
Anyway, as you avoid to reply to my comment section about it, I will then consider my thoughts accepted because hey... that's OSS spirt too :D
alexander-akait commentedon Oct 13, 2020
@LBRDan Because we have many issues, if you want this ASAP - send a PR
captainCoolMJ commentedon Oct 13, 2020
If you're looking for a quick snippet to get some env parsing back, you should be able to do something like:
That should help to bring some of the key/value parsing back
Hope that helps!
anshumanv commentedon Oct 13, 2020
Thanks for all the input everyone, #1939 should fix it and should land in the next release, hopefully soon :)
shwetaarshad commentedon Dec 17, 2020
nps is executing
default: nps webpacknps is executing
webpack: nps webpack.servernps is executing
webpack.server: webpack-dev-server -d --devtool '#source-map' --inline --env.server[webpack-cli] Unknown argument: #source-map
[webpack-cli] Unknown argument: --inline
[webpack-cli] Unknown argument: --env.server
The script called "webpack.server" which runs "webpack-dev-server -d --devtool '#source-map' --inline --env.server" failed with exit code 2 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "webpack" which runs "nps webpack.server" failed with exit code 2 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "default" which runs "nps webpack" failed with exit code 2 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
npm ERR! code ELIFECYCLE
npm ERR! errno 2
shwetaarshad commentedon Dec 17, 2020
How can I resolve above with below webpack packages:
"webpack": "^5.11.0",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^4.0.0-beta.0",