Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

nowa搭建项目 open 为 true 时 webpack dev server 重复打开 #16

Description

@ReactiveXYZ-Dev

环境:

@nowa/module-webpack 版本 0.7.5

webpack-dev-server 版本 3.4.1

suspect原因:

当 options.open 为 true 时,以上的webpack-dev-server会在'lib/Server.js' 的 showStatus() 函数中打开一次浏览器,然后:

module-webpack 中:

https://github.com/nowa-webpack/nowa2/blob/68ff50b789379c071591bfa0dc97c129ddf890fd/packages/module-webpack/src/index.ts#L258 会再次执行打开浏览器显示开发链接。

在 webpack-dev-server 3.3.1 中不会有以上的逻辑。需要做些兼容性适配。

Metadata

Metadata

Assignees

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