Skip to content

fix: avoid unnecessary searching port #2648

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 1 commit into from
Apr 21, 2021

Conversation

alexander-akait
Copy link
Member

What kind of change does this PR introduce?

bugfix/refactor

Did you add tests for your changes?

Will be added with webpack-dev-server@beta

If relevant, did you update the documentation?

No need

Summary

we don't need to search free port before start webpack dev server, v4 do it automatically, so let's simplify it and avoid unnecessary code (also remove dev.publicPath, this option doesn't exist in webpack dev server v3)

Does this PR introduce a breaking change?

No

Other information

No

@alexander-akait alexander-akait requested a review from a team as a code owner April 20, 2021 21:17
@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #2648 (23a028e) into master (39f7c97) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2648      +/-   ##
==========================================
+ Coverage   95.21%   95.26%   +0.05%     
==========================================
  Files          30       30              
  Lines        1505     1501       -4     
  Branches      430      429       -1     
==========================================
- Hits         1433     1430       -3     
+ Misses         72       71       -1     
Impacted Files Coverage Δ
packages/webpack-cli/lib/plugins/CLIPlugin.js 100.00% <ø> (ø)
packages/serve/src/startDevServer.ts 92.98% <100.00%> (+2.81%) ⬆️
packages/webpack-cli/lib/webpack-cli.js 96.06% <100.00%> (-0.12%) ⬇️

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 26ae685...23a028e. Read the comment docs.

@alexander-akait alexander-akait merged commit 5063ed7 into master Apr 21, 2021
@alexander-akait alexander-akait deleted the fix-avoid-unnecessary-seaching-port branch April 21, 2021 11:55
@jolyndenning
Copy link

I think this PR may have caused a regression. See https://github.com/webpack/webpack-cli/issues/2696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants