Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huruji/open-browser-plugin

A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api
https://github.com/huruji/open-browser-plugin

open-browser webpack webpack-dev-server webpack-plugin

Last synced: about 1 month ago
JSON representation

A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api

Awesome Lists containing this project

README

        

# open-browser-plugin
A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api

## How to use

```js
npm i --save-dev open-browser-plugin
```

```js
// webpack.config.js
const OpenBrowserPlugin = reuire('open-browser-plugin')

const config = {
plugins: [
new OpenBrowserPlugin({
port: 8080
})
]
}
```

## options
### port

default `8080`

### host

default `localhost`

### protocol

default `http:`