Skip to content

Webpack server options not used to define entrypoints url #1117

Closed
@gillesdalle

Description

@gillesdalle

Hello,

To configure the webpack dev-server, I use the configureDevServerOptions method in the webpack.config.js file :

Encore.
  .configureDevServerOptions((options) => {
    options.server = {
      type: "https",
      options: {
        key: ".....",
        cert: "....."
      },
    };
    options.host = "0.0.0.0";
    options.port = "3000";
    options.hot = true;
    options.allowedHosts = "all";
  })
  ......

The probleme is that in the generated entrypoints.json file, all urls start with http://localhost:8080/build/.
The server configuration options are not used

If I use the cli params, urls in the entrpoints file are OK :

encore dev-server --host 0.0.0.0 --port 3000
# => urls in entrypoinys.json start with 'http://0.0.0.0:3000/'

Is this a bug or have i missing something ?

Thanks

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