1.0.2 • Published 5 years ago

add-server-client-script-webpack-plugin v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

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

npm i --save-dev add-server-client-script-webpack-plugin
// webpack.config.js
const AddServerClientScriptPlugin = reuire('open-browser-plugin')

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

options

port

default 8080

host

default localhost

protocol

default hppt:

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago