webpack-dev-server Version: 2.11.1
[x] This is a bug
When I set the open flag to false, it does not prevent the browser from opening.
In my webpack.config.js:
devServer: { open: false }
I expect the browser NOT to open
The browser opens
Self explanatory. Even a simple server with 'open:false' will still have this bug.
Ok turned out someone had altered the scripts to start the webserver with the --open option.
I have webpack 4 but this is not working
@kasaiee try this
modify your
package.jsonfile, like below code shows
{
"scripts": {
"dev": "webpack-dev-server --open --config ./build/webpack.config.js",
}
}
Most helpful comment
Ok turned out someone had altered the scripts to start the webserver with the --open option.