Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Use URL of script instead of window.location for dev server #448

Merged
merged 1 commit into from
Jun 2, 2018

Conversation

morrislaptop
Copy link
Contributor

In my scenario, the page is being served by PHP and the URL to the bundle is pointed directly to the webpack dev server.

So, the website is being served at http://my-project.test and the script is pointing to http://localhost:8080/app.js.

By using window.location for the webpack dev server client, it is forcing the sockjs server to be on the same domain as the page. However, it's more accurate to get the dev server from the script.

References:

@morrislaptop
Copy link
Contributor Author

Are you still maintaining 9.x?

@egoist
Copy link
Owner

egoist commented Jun 3, 2018

@morrislaptop only bug fixes

@morrislaptop
Copy link
Contributor Author

morrislaptop commented Jun 3, 2018 via email

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

Successfully merging this pull request may close these issues.

2 participants