GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — feat: remove cli-flags by bjohansebas · Pull Request #5634 · webpack/webpack-dev-server Conversation
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
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
|
|
||
| - The following CLI options were deprecated and have now been removed. Please use the recommended alternatives: | ||
| - http2 -> server | ||
| - https -> server |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
|
Let's fix lint and feel free to merge |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The linter issue regarding the CVE in the webpack subdependency |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
* 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
* 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
* 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
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.