-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: allow more client options to be configured via resource url (#4156) #4157
Conversation
|
ok sure, I will update this afternoon. thanks!
…On Tue, Jan 11, 2022 at 9:20 AM Alexander Akait ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In client-src/index.js
<#4157 (comment)>
:
> @@ -58,6 +58,18 @@ if (parsedResourceQuery["live-reload"] === "true") {
log.info("Live Reloading enabled.");
}
+if (parsedResourceQuery.progress === "true") {
+ options.progress = true;
+
+ log.info("Progress reporting enabled.");
+}
+
+if (parsedResourceQuery.overlay === "true") {
+ options.overlay = true;
+
+ log.info("Error overlay enabled.");
+}
I think we can use JSON.stringify/JSON.parse to support more options
—
Reply to this email directly, view it on GitHub
<#4157 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIFGS3DDWUOTOQIK45M6TLUVRREVANCNFSM5LKWM5WA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Codecov Report
@@ Coverage Diff @@
## master #4157 +/- ##
==========================================
+ Coverage 92.27% 92.49% +0.21%
==========================================
Files 14 14
Lines 1541 1558 +17
Branches 590 598 +8
==========================================
+ Hits 1422 1441 +19
+ Misses 110 108 -2
Partials 9 9
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.
I believe we also need to set these options automatically if provided in configuration, as we do for other client options like logging
.
webpack-dev-server/lib/Server.js
Line 596 in e99c0bc
if (typeof client.logging !== "undefined") { |
For Bugs and Features; did you add new tests?
Yes, added tests for parsing resource query options
Motivation / Use-Case
See #4156
Breaking Changes
No breaking changes.
Additional Info