-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Emit progress-update event on the listeningApp, allowing update progress to be obtained in the node API. #1666
Conversation
…ess to be obtained in the node API. ``` new webpackDevServer(webpack, config).listen(port, hostname, function (err) { this.on('progress-update', ({ percent, msg }) => { console.log(`${percent}% - ${msg}.`); }); }); ```
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.
Please accept CLA and add tests
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.
Please accept CLA and add tests
Codecov Report
@@ Coverage Diff @@
## master #1666 +/- ##
==========================================
- Coverage 84.39% 84.06% -0.33%
==========================================
Files 7 7
Lines 519 521 +2
Branches 159 160 +1
==========================================
Hits 438 438
- Misses 64 65 +1
- Partials 17 18 +1
Continue to review full report at Codecov.
|
Please accept CLA |
Friendly ping @pfdgithub |
For Bugs and Features; did you add new tests?
Motivation / Use-Case
Breaking Changes
Additional Info
Just like in the browser, we can now get the compilation progress of the current project in the node API.