Closed
Description
I decided to separate this from the clientMode/serverMode
refactor effort. Here are my plans:
- make any "CLI Only" options available to API as well (e.g.
devServer.progress
) - bring options handling in
bin/webpack-dev-server
to a bare minimum - minimize
createConfig
such that it only normalizes CLI arguments to API options, but does not handle defaults. Instead, the API should handle setting defaults. - move the logic of
bin/webpack-dev-server
intowebpack-cli serve
, such thatwebpack-cli serve
calls the Dev Server API.
Issue created at webpack-cli
: webpack/webpack-cli#900
EDIT:
- make the CLI throw an error (or possibly just a warning for backwards compatability?) if an argument is provided that does not exist
Metadata
Metadata
Assignees
Labels
No labels