You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make this approach work, I have to add sockPort:8080 in webpack dev server's option. So that the hot reload and async import know that it should use 192.168.1.3:8080 instead of 192.168.1.3:8000.
Sorry. I am going to close this issue.
I find that there is one more problem that prevent this approach to work, Lazy loading.
sockPort still can not make the bundle to request async components from correct port.
I have to continue to use dev server proxy to develop with Laravel.
I use Quasar as frontend and Laravel as backend. When I am developing, I serve Laravel at 0.0.0.0:8000 and Quasar at 0.0.0.0:8080.
In the laravel view, it links to the compiled Quasar app by
To make this approach work, I have to add sockPort:8080 in webpack dev server's option. So that the hot reload and async import know that it should use 192.168.1.3:8080 instead of 192.168.1.3:8000.
May be this page will explain better
webpack/webpack-dev-server#1792
This option is added from v3.4.0
https://github.com/webpack/webpack-dev-server/releases
The text was updated successfully, but these errors were encountered: