A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api
npm i --save-dev open-browser-plugin
// webpack.config.js
const OpenBrowserPlugin = reuire('open-browser-plugin')
const config = {
plugins: [
new OpenBrowserPlugin({
port: 8080
})
]
}
default 8080
default localhost
default hppt: