You can check out this barebones repo reproducing the issue.
The WDS is using via it's Node API with open: true.
Browser tab should open
No browser tab is opened
You can check out this barebones repo reproducing the issue.
Confirmed this doesn't work via the bare Node API atm, you could use
webpack.config.js
const config = {
//...
devServer: {
open: true
}
};
in the meantime
/cc @hiroppy after refactor bin it should be easy to fix, can you help with this too, you are do amazing job :+1: Just need move event handler in Server instead bin, same problem for bonjour
open(https://github.com/webpack/webpack-dev-server/blob/master/bin/utils.js#L91-L95) seems to be called only by webpack-dev-server.js(https://github.com/webpack/webpack-dev-server/blob/master/bin/webpack-dev-server.js) (as status).
package.json calls "lib/Server.js".
@hiroppy yep, we should move all what starting with https://github.com/webpack/webpack-dev-server/blob/master/bin/webpack-dev-server.js#L172 in lib/Server, it is fix open/ when you use Node API, i think it is architecture bug and will be great fix it.