Webpack-dev-server: devServer.open is true, but it not work in nodeJs

Created on 2 Jul 2018  路  5Comments  路  Source: webpack/webpack-dev-server

devServer: {
contentBase: path.join(__dirname, '../static'),
proxy: config.dev.proxyTable,
hot: true,
quiet: true,
open: true
}

This is my devServer's options. Then I use it in nodeJs

================

webpackDevServer.addDevServerEntrypoints(webpackConfig, webpackConfig.devServer);

var compiler = webpack(webpackConfig)

var server = new webpackDevServer(compiler, webpackConfig.devServer);

server.listen(process.env.PORT || config.dev.port, 'localhost', () => {
console.log('server listening on port 8090')
})

=======

I has a question that why the options open dot not open the browser auto ??

3 (important) 3 (broken) bug

All 5 comments

I read the code, but i can't find the options.open in Server.js??

Same here but for hot reload too.

EDIT 26/07: About hot reload -> #1377

Same here but for overlay too

Problem still exists? Somebody can create minimum reproducible test repo?

Duplicate https://github.com/webpack/webpack-dev-server/issues/1510 .Close this issue due not issue template and test repo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antoinerousseau picture antoinerousseau  路  3Comments

daryn-k picture daryn-k  路  3Comments

piotrszaredko picture piotrszaredko  路  3Comments

wojtekmaj picture wojtekmaj  路  3Comments

mrdulin picture mrdulin  路  3Comments