Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/huruji/add-server-client-script-webpack-plugin

In order to solve the problem that webpack-dev-server need add client script to entry manually like `webpack-dev-server/client?http:localhost:8080` via node.js Api
https://github.com/huruji/add-server-client-script-webpack-plugin

Last synced: 3 months ago
JSON representation

In order to solve the problem that webpack-dev-server need add client script to entry manually like `webpack-dev-server/client?http:localhost:8080` via node.js Api

Awesome Lists containing this project

README

        

# add-server-client-script-webpack-plugin
In order to solve the problem that webpack-dev-server need add script entry manually like `webpack-dev-server/client?http:localhost:8080` via node api

## How to use

```js
npm i --save-dev add-server-client-script-webpack-plugin
```

```js
// webpack.config.js
const AddServerClientScriptPlugin = reuire('add-server-client-script-webpack-plugin')

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

## options
### port

default `8080`

### host

default `localhost`

### protocol

default `http:`