Skip to content

Migrate webpack-dev-server CLI to webpack-cli serve #900

Closed
@knagaitsev

Description

@knagaitsev

Is your feature request related to a problem? Please describe.
The Dev Server's CLI should live in webpack-cli. This will make project configuration easier for users, and will force minimization of configuration changes that the CLI makes, creating uniformity between the Dev Server's CLI and API.

Describe the solution you'd like

  • webpack-cli serve should call the Dev Server API, not the CLI
  • Move logic from bin/webpack-dev-server to serve package
  • Minimalize any configuration changes that the CLI makes - it should simply normalize the CLI arguments into Dev Server options, then pass it into the API, and do no further config.
  • Dev Server CLI should tell the user to switch to webpack-cli serve
  • CLI should eventually be removed from the Dev Server in a major version

Describe alternatives you've considered
N/A

Additional context

EDIT:

  • Also, tests need to be added here for webpack-cli serve

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions