Skip to content

Bump webpack dev server to version 3.4 or above to support sockPort option #4293

@tsewaiho

Description

@tsewaiho

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

<div id="q-app"></div>
<script src="http://192.168.1.3:8080/app.js"></script>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions