Skip to content

GSoC Refactor: CLI Refactor (CLI/API Uniformity Improvements, webpack-cli serve) #1960

Closed
@knagaitsev

Description

@knagaitsev

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 into webpack-cli serve, such that webpack-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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions