-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: new CLI options API for serve #2754
Conversation
packages/serve/src/index.ts
Outdated
|
||
const options = | ||
typeof devServer.getArguments === "function" | ||
? devServer.getArguments(webpack) |
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.
nice
Codecov Report
@@ Coverage Diff @@
## master #2754 +/- ##
==========================================
- Coverage 95.96% 94.25% -1.71%
==========================================
Files 31 31
Lines 1634 1672 +38
Branches 476 487 +11
==========================================
+ Hits 1568 1576 +8
- Misses 66 96 +30
Continue to review full report at Codecov.
|
Please ignore coverage, it will be fixed after update webpack-dev-server |
What kind of change does this PR introduce?
feature
Did you add tests for your changes?
Exist, but only work after merge webpack/webpack-dev-server#3325
If relevant, did you update the documentation?
No need
Summary
New API for CLI options
Does this PR introduce a breaking change?
No
Other information
I think we should refactor
serve
and putstartDevServer.ts
inindex.ts
to avoid extrarequire
(but it is not problem, becauserequire
is cachable). Also we will avoid a lot offor
/reduce
/forEach
after #2626, but I want postpone it right now, focus on webpack-dev-server