Skip to content

Webpack 5 --open-page / devServer.openPage not opening page #2993

Description

@JasonGore

Bug report

I've been updating our projects from webpack 4 to webpack 5 and noticed that webpack-dev-server configs stopped opening browser pages on launch entirely.

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

  1. git clone https://github.com/JasonGore/webpack-dev-server-openpage.git
  2. npm install
  3. npm run dev

Project uses both devServer.openPage config and --open-page argument.

What is the expected behavior?

Page should open in browser as it does with webpack 4 / webpack-dev-server 3 per webpack documentation on devServer.openPage and --open-page.

Other relevant information:
webpack version: 5.20.2
Node.js version: v12.18.2
Operating System: Windows 10
Additional tools:
webpack-cli: 4.5.0
webpack-dev-server: 3.11.2
Versions in https://github.com/JasonGore/webpack-dev-server-openpage/blob/main/package-lock.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions