Skip to content

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
@internettrans
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.

8 participants