-
-
Notifications
You must be signed in to change notification settings - Fork 200
Revert removing public option #1095
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
Revert removing public option #1095
Conversation
Thanks for the PR. This stuff is very complex, and I am not an expert on it: I haven't had time to dig deeply enough. But, we have a problem :). This PR (as you know) reverts #1058. So #1058 was purposely done to fix an issue... and now we're reversing it. It makes me think that we're not understanding the full story and that the correct solution might be some combination of the two. WDYT? |
Yes, I will try to explain the problem that I encounter. The PR #1058 replace the public option with the client-web-socket-url option like it was described in the webpack-dev-server upgrade doc. If I run webpack-dev-server with When I remove the option and I set the parameter The target of my PR is that --client-web-socket-url is a webpack-dev-server option which protocol start with auto://, ws:// or wss:// and in encore is override with an url start with http:// or https://. I hope I was clear... I'm open for any other solutions to solve the usage of HMR with a custom domain. |
I too think that webpack should not use the Encore is already looking at However, listening to the I think what we need is some kind of functionality to allow us to override the host used in the manifest from the config js file. Something like: |
Thanks @shadowc for your interest. Add an option in webpack_config.js can be a solution but I don't think that is the best because the base url depends on the environment where you execute webpack-dev-server. @weaverryan an opinion ? |
I just fixed the error I had at the build. |
Hey @weaverryan ! What do you think? I believe that while this is not how I proposed it, it's now using the So, I believe this would be a working solution. We can also add (in another PR) an option to set this up in a function from |
cfa2c16
to
33da174
Compare
Thank you @louismariegaborit! @shadowc would you mind creating a docs PR for this, including how it could be used in a Docker context? |
Hey @louismariegaborit ! I tested your fix with this docker setup and it worked great!!
I'm hoping to add this into the symfony docs as well! |
Add --public option like an encore argument to specify public url that use for entry asset in entrypoints.json.
I have a problem with this suggestion when I try to build webpack but the result is correct.
Anyone can help me ?
Fixes #1094