Skip to content

refactor: move https normalization #3331

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

Merged
merged 2 commits into from
May 24, 2021
Merged

refactor: move https normalization #3331

merged 2 commits into from
May 24, 2021

Conversation

anshumanv
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Existing

Motivation / Use-Case

We have an option normalizer which deals with option normalization and hence is a better candidate for this computation

Breaking Changes

nope

Additional Info

@codecov
Copy link

codecov bot commented May 23, 2021

Codecov Report

Merging #3331 (2e5b856) into master (257e2eb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3331   +/-   ##
=======================================
  Coverage   95.69%   95.70%           
=======================================
  Files          34       34           
  Lines        1279     1280    +1     
  Branches      368      369    +1     
=======================================
+ Hits         1224     1225    +1     
  Misses         51       51           
  Partials        4        4           
Impacted Files Coverage Δ
lib/Server.js 95.84% <100.00%> (-0.19%) ⬇️
lib/utils/normalizeOptions.js 100.00% <100.00%> (ø)
client-src/index.js 91.07% <0.00%> (+0.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 257e2eb...2e5b856. Read the comment docs.


if (!options.https.key || !options.https.cert) {
fakeCert = getCertificate(
compiler.getInfrastructureLogger('webpack-dev-server')
Copy link
Member

Choose a reason for hiding this comment

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

We need assign to this.logger before and use this.logger everywhere

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@alexander-akait alexander-akait merged commit 8468f93 into master May 24, 2021
@alexander-akait alexander-akait deleted the setup-https branch May 24, 2021 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants