-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add hot-only option to allow setting only-dev-server
from cli or config
#439
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
@sokra ping |
@@ -38,6 +39,11 @@ yargs.options({ | |||
default: true, | |||
describe: "Inline mode" | |||
}, | |||
"hotOnly": { |
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.
"hotOnly"
=> "hot-only"
for the CLI argument
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.
yargs
normalizes it, so both works. I can change it though 😄
@sokra Updated |
@sokra ping. Also, thoughts on a v1 branch? |
@sokra ping. |
Thanks |
Hi, I have a comment on this. It seems that with Digging deeper it seems that this processing is done in
How would we go about getting this fixed? Is it something that needs fixing in webpack? (Why is it webpack's job to handle ARGV for webpack-dev-server, anyway?) |
That's by design. It's for the entrypoint The goal of this option was to avoid supplying entrypoints, as can be seen in my opening post |
Thanks for your response. Okay. I saw this code change you made in Server.js:
So I thought you were trying to make it so you had to specify only one or the other to activate |
I currently have to mess around with
entry
manually as I wantonly-dev-server
. This allows me to just add the options, or cli flag.current:
wanted:
Ideally I'd PR this into
webpack-dev-server@1
(as IE8 support is dropped, we'll probably never upgrade), but there doesn't seem like there's a branch for it.