-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(webpack-dev-server): add WEBPACK_DEV_SERVER
environment variable
#1533
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1533 +/- ##
===========================================
- Coverage 89.19% 75.32% -13.88%
===========================================
Files 9 10 +1
Lines 611 689 +78
Branches 186 0 -186
===========================================
- Hits 545 519 -26
- Misses 54 170 +116
+ Partials 12 0 -12
Continue to review full report at Codecov.
|
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.
Not right place, we should set WEBPACK_DEV_SERVER
when you run using node
api too, your code set env var only when you run dev server using cli
. Here right place https://github.com/webpack/webpack-dev-server/blob/master/lib/Server.js#L60
Then I'd set it in both places, because |
@donaldpipowitch too late? Can you describe where it is late? |
Also need add tests to avoid regressions in future |
We need this env var, before the |
@donaldpipowitch looks you right, please add test, also fix lint problem |
WEBPACK_DEV_SERVER
env var
a431080
to
68a23b6
Compare
Added lint fix and a small test. 👍 |
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.
Need test for Server
too
I wasn't sure where I should put that test, so I created a new file. Hope that's fine? |
Hm, CI tests on windows broken 😕 Not related to this PR |
WEBPACK_DEV_SERVER
env varWEBPACK_DEV_SERVER
environment variable
Anything more I can do? :) Thanks so far. |
This seems to be currently failing on windows 🤔 https://ci.appveyor.com/project/sokra/webpack-dev-server/builds/19636987/job/0xps5athsnkc5m22 |
Is this a failure on my side? 🤔 Hard to tell for me. Should I rebaserebase with the current master? |
@donaldpipowitch Could you rebase? If you don't rebase I will take over. |
5542a91
to
70e2600
Compare
I tried to update it. If it doesn't work, I'd be happy if you could move on with the MR. |
@donaldpipowitch Sorry but could you rebase again? We dropped travis and appveyor. |
For Bugs and Features; did you add new tests?
No. I just added it in the same way
webpack-serve
did it and they had no test for this either 🤔As this was an official package before I assume it's okay for this one as well?Motivation / Use-Case
As described here: #1532.
Breaking Changes
No.
Additional Info
I placed this just before
require('webpack-cli/bin/convert-argv')
which will require my config and this env variable should be visible for the config file.👋