Skip to content

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

Notifications You must be signed in to change notification settings

huruji/add-server-client-script-webpack-plugin

Repository files navigation

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('add-server-client-script-webpack-plugin')

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

options

port

default 8080

host

default localhost

protocol

default http:

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •