GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: remove cli-flags by bjohansebas · Pull Request #5634 · webpack/webpack-dev-server

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Jan 23, 2026

Copy link
Copy Markdown
Member

Summary

removing these options that are deprecate

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bjohansebas
feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket s…
30054fd
…erver options
@codecov

codecov Bot commented Jan 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.54%. Comparing base (6cd1752) to head (fabea5b).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #5634   +/-   ##
=======================================
  Coverage   83.54%   83.54%           
=======================================
  Files          11       11           
  Lines        1920     1920           
  Branches      706      707    +1     
=======================================
  Hits         1604     1604           
  Misses        283      283           
  Partials       33       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait
alexander-akait reviewed Jan 23, 2026
View reviewed changes

@alexander-akait alexander-akait left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this change (and replacement for these options) in migration guide to ensure we don't remove something more than expected

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
bjohansebas added 2 commits February 1, 2026 10:31
@bjohansebas
Merge branch 'next' of github.com:webpack/webpack-dev-server into rem…
012d844
…ove-cli-flags
@bjohansebas
chore: update migration guide to reflect removal of deprecated CLI op…
230e15a
…tions
alexander-akait
alexander-akait reviewed Feb 1, 2026
View reviewed changes
Comment thread migration-v6.md Outdated

- The following CLI options were deprecated and have now been removed. Please use the recommended alternatives:
- http2 -> server
- https -> server

@alexander-akait alexander-akait Feb 1, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will just server work? Maybe server-type? Just to ensure we don't make a typo here 😄

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexander-akait alexander-akait Feb 1, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, do you provide here not CLI options, let's write CLI options here

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexander-akait alexander-akait Feb 1, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just write webpack help serve --verbose and you will see all CLI options

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bjohansebas bjohansebas Feb 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was looking for a way to reproduce and see them

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bjohansebas bjohansebas Feb 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-akait I’m not fully understanding this. At what point is the cli-flags.js file executed within webpack-cli?

I’m asking because many of these options were removed in webpack-dev-server v5 — for example in this commit: 1e86e37
And this is the commit that updated the README accordingly 5c4006a
So it feels like those options no longer exist starting from webpack-dev-server v5, and this file was simply never updated — or maybe I’m missing something?
In any case, even when running from main, those options still don’t show up in the CLI. From what I understand, the file that actually defines the CLI options is options.json, which would make cli-flags.js unnecessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexander-akait alexander-akait Feb 2, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not fully understanding this. At what point is the cli-flags.js file executed within webpack-cli?

Yes, webpack-cli reads this file and getting all CLI flag from this file. Looks like we forgot to remove them. To avoid such things let's add a test case in CLI with --help and --verbose so we will have all CLI arguments in our tests

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexander-akait alexander-akait Feb 3, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also let's use here the new CLI options = --server-type=https and etc

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
bjohansebas added 3 commits February 3, 2026 09:00
@bjohansebas
Merge branch 'next' of github.com:webpack/webpack-dev-server into rem…
fc4d97f
…ove-cli-flags
@bjohansebas
feat: remove cli-flags
0e70271
@bjohansebas
feat: remove cli-flags.d.ts
8705198
@bjohansebas bjohansebas changed the title feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket server options feat: remove cli-flags Feb 28, 2026
@bjohansebas
Merge branch 'next' of github.com:webpack/webpack-dev-server into rem…
fabea5b
…ove-cli-flags
@bjohansebas
bjohansebas requested a review from alexander-akait February 28, 2026 20:42
alexander-akait
alexander-akait approved these changes Mar 2, 2026
View reviewed changes
@alexander-akait

alexander-akait commented Mar 2, 2026

Copy link
Copy Markdown
Member

Let's fix lint and feel free to merge

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas

bjohansebas commented Mar 6, 2026

Copy link
Copy Markdown
Member Author

The linter issue regarding the CVE in the webpack subdependency

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas
bjohansebas merged commit 21df33f into next Mar 6, 2026
51 of 52 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas
bjohansebas deleted the remove-cli-flags branch March 6, 2026 18:44
bjohansebas added a commit that referenced this pull request May 23, 2026
@bjohansebas
feat: remove cli-flags (#5634)
d0ccd8b
* feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket server options

* chore: update migration guide to reflect removal of deprecated CLI options

* feat: remove cli-flags

* feat: remove cli-flags.d.ts
bjohansebas added a commit that referenced this pull request Jun 12, 2026
@bjohansebas
feat: remove cli-flags (#5634)
d24381a
* feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket server options

* chore: update migration guide to reflect removal of deprecated CLI options

* feat: remove cli-flags

* feat: remove cli-flags.d.ts
bjohansebas added a commit that referenced this pull request Jul 1, 2026
@bjohansebas
feat: remove cli-flags (#5634)
3c4b22a
* feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket server options

* chore: update migration guide to reflect removal of deprecated CLI options

* feat: remove cli-flags

* feat: remove cli-flags.d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexander-akait alexander-akait alexander-akait approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bjohansebas @alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.