-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove request cert in favor https options #2618
Remove request cert in favor https options #2618
Conversation
Codecov Report
@@ Coverage Diff @@
## v4 #2618 +/- ##
=======================================
Coverage 92.51% 92.51%
=======================================
Files 37 37
Lines 1310 1310
Branches 354 354
=======================================
Hits 1212 1212
Misses 93 93
Partials 5 5 Continue to review full report at Codecov.
|
lib/Server.js
Outdated
@@ -573,6 +573,8 @@ class Server { | |||
|
|||
this.options.https.key = this.options.https.key || fakeCert; | |||
this.options.https.cert = this.options.https.cert || fakeCert; | |||
|
|||
console.log(this.options.https); |
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.
Need to delete this line.
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!
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.
BREAKING CHANGE: the `requestCert` was removed in favor `https` options
685e0ff
to
fc6448f
Compare
lib/options.json
Outdated
@@ -296,8 +296,8 @@ | |||
"public": { | |||
"type": "string" | |||
}, | |||
"requestCert": { | |||
"type": "boolean" | |||
"publicPath": { |
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.
why does this pr have publicPath changed?
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.
@hiroppy merge problem, fixed
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.
we should add requestCert to this line because https has it.
https://github.com/webpack/webpack-dev-server/blob/v4/lib/Server.js#L551
FYI: https://github.com/webpack/webpack-dev-server/blob/v4/lib/options.json#L132
@hiroppy no, we already have |
oh, sorry my for misreading. |
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
Avoid unnecessary option
Breaking Changes
Yes
Additional Info
No