-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Enhance env flag support #1932
Comments
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. |
No, it is OSS
You can help and send a PR |
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 |
@LBRDan Because we have many issues, if you want this ASAP - send a PR |
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! |
Thanks for all the input everyone, #1939 should fix it and should land in the next release, hopefully soon :) |
nps is executing |
How can I resolve above with below webpack packages: "webpack": "^5.11.0", |
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
The text was updated successfully, but these errors were encountered: