Skip to content
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

Pass ARGV in webpack-dev-server? #286

Closed
lucaspiller opened this issue Apr 25, 2017 · 4 comments
Closed

Pass ARGV in webpack-dev-server? #286

lucaspiller opened this issue Apr 25, 2017 · 4 comments

Comments

@lucaspiller
Copy link

lucaspiller commented Apr 25, 2017

Is there any reason why ARGV isn't passed to the command run in ./bin/webpack-dev-server, like the other two webpack binstubs?

In development, I often run the application on a separate machine, so need to pass the --host option. I can't set it in config/webpack/development.server.yml as that'll break things for my colleagues.

@gauravtiwari
Copy link
Member

@lucaspiller Feel free to make a PR please 👍

@gauravtiwari
Copy link
Member

Fixed by #295

@lucaspiller
Copy link
Author

lucaspiller commented May 3, 2017

Thanks, however in regards to my actual issue (not having the server running on localhost), this didn't work as Rails was still rendering the URL as localhost:8080. In the end I changed config/webpack/development.server.yml and told Git to ignore the changes with:

git update-index --assume-unchanged config/webpack/development.server.yml

@timkrins
Copy link

timkrins commented Sep 7, 2018

It seems this issue was purposefully unfixed by #843

Now there is no ARGV support for webpack-dev-server, and we need to use ENV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants