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
For Features; What is the motivation and/or use-case for the feature?
Now that webpack-dev-server must be invoked via webpack serve, it would be nice if webpack serve accepted --env flags, like webpack-dev-server used to. @mybrainishuge mentioned this in #2759 (comment), and I think it's worth discussing.
As he said:
How are environment options passed to webpack serve when exporting a function in the webpack config? With webpack-dev-server, I passed environment variables:
webpack-dev-server --env.mode development
Passing the same argument to webpack serve errors:
[webpack-cli] Unknown argument: --env.mode
[webpack-cli] Unknown argument: development
I'm not seeing how to pass anything other than booleans to webpack serve, but I want to pass strings:
webpack serve --env mode
The text was updated successfully, but these errors were encountered:
For Features; What is the motivation and/or use-case for the feature?
Now that webpack-dev-server must be invoked via
webpack serve
, it would be nice ifwebpack serve
accepted--env
flags, likewebpack-dev-server
used to. @mybrainishuge mentioned this in #2759 (comment), and I think it's worth discussing.As he said:
How are environment options passed to webpack serve when exporting a function in the webpack config? With
webpack-dev-server
, I passed environment variables:Passing the same argument to webpack serve errors:
I'm not seeing how to pass anything other than booleans to webpack serve, but I want to pass strings:
The text was updated successfully, but these errors were encountered: