BREAKING CHANGE: remove CLI default flag values for webpack-cli serve#2659
BREAKING CHANGE: remove CLI default flag values for webpack-cli serve#2659hiroppy merged 11 commits intowebpack:v4from
Conversation
Codecov Report
@@ Coverage Diff @@
## v4 #2659 +/- ##
==========================================
+ Coverage 92.88% 92.89% +0.01%
==========================================
Files 37 37
Lines 1293 1295 +2
Branches 344 345 +1
==========================================
+ Hits 1201 1203 +2
Misses 88 88
Partials 4 4
Continue to review full report at Codecov.
|
|
I just realized that the default behavior I added in |
9c25995 to
9c1a225
Compare
|
/cc @hiroppy |
|
@Loonride Looks something broken on CI |
5d0c8b6 to
996c7cf
Compare
|
I thought some slight refactoring on the current CLI flags (
|
bin/cli-flags.js
Outdated
| name: 'name', | ||
| type: String, | ||
| describe: 'Name of webpack config to get devServer config from', | ||
| }, |
There was a problem hiding this comment.
Why we have it here?
@evilebottnawi We need it for this: webpack/webpack-cli#1649 (comment). Unless we want to add this flag on the webpack-cli side, but I think it is easiest to keep it uniform with other CLI flags
There was a problem hiding this comment.
It is already added on webpack-cli side
There was a problem hiding this comment.
It is already added on
webpack-cliside
Do you know where to find it on webpack-cli side? I can't seem to find it
Edit: never mind, I think I found the PR
There was a problem hiding this comment.
For Bugs and Features; did you add new tests?
Not yet
Motivation / Use-Case
We do not want default values for webpack-cli serve flags, because this makes it much easier to merge CLI flags with the user's devServer options in their webpack config
Breaking Changes
createConfigutil API changesAdditional Info